I want to get the list of apps currently running on macOS, in order of recent usage.
The built-in cmd-tab
feature does it.
NSWorkspace.shared.runningApplications
returns the set of running apps, but not in the desired order.
As a last resort, I am open to using private api calls as well.
Thanks