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.
This was asked and answered previously here: Getting the list of running applications ordered by last use
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With