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?
Everything I tried gave me everything, or just the applications that are NOT minimized. Drives me nuts. Tried CGWindowListCopyWindowInfo
, NSArray *runningApps = [workspace launchedApplications]
, but I can't get to the filtering of the list I need - whatever Cmd-TAB brings you.