title: Mac Programming: Command-TAB - How does this build the application list?
body: <p>I have a need to enumerate the applications that have "windows", "icons", whether if they are minimized to the dock or not. I need basically the list of applications that Command-TAB brings you. How do you do this programmatically? </p>
  
  <p>Everything I tried gave me everything, or just the applications that are NOT minimized. Drives me nuts. Tried <code>CGWindowListCopyWindowInfo</code>, <code>NSArray *runningApps = [workspace launchedApplications]</code>, but I can't get to the filtering of the list I need - whatever Cmd-TAB brings you.</p>