I need to list applications that have “windows”, “icons”, regardless of whether they are docked or not. I basically need a list of applications that Command-TAB brings you. How do you do this programmatically?
Everything I tried gave me everything, or just applications that are NOT minimized. Drives me crazy. I tried CGWindowListCopyWindowInfo, NSArray *runningApps = [workspace launchedApplications]but I can’t go on to filter the list I need - all that Cmd-TAB brings you.
source
share