I'm trying to get a list of the most recently used applications. NSWorkspace
returns a list of active applications and I can sort them on a few options using NSRunningApplication
. see list below:
- launchDate
- finishedLaunching
- processIdentifier
I don't want the launch date but the most recent 'active' date (like the way cmd-tab sorts). Does anyone know the solution for this?