NSRunningApplication, a returned list of recently used applications?

I am trying to get a list of recently applied applications. NSWorkspacereturns a list of active applications, and I can sort them by several parameters with NSRunningApplication. see list below:

- launchDate
- finishedLaunching
- processIdentifier

I do not need a launch date, but the most recent "active" date (for example, path cmd- tab). Does anyone know a solution for this?

+3
source share
2 answers

There is no documented way to do this that I know of, but I definitely wrote that you are asking to use private APIs: http://gist.github.com/163918

. , , , API.

+5

Source: https://habr.com/ru/post/1748970/


All Articles