lastApp
Returns the name of the app that was in front before the current one.
Keyboard Maestro: LastApplication
Details #
lastApp() takes no arguments and returns the name of the app that was frontmost before the current one, as text.
Parameters #
Takes 0 arguments.
{{ lastApp() }}
Examples #
lastApp()→
Gotchas #
It only knows about switches Switchboard has seen since it started, so right after launch it is empty.
Calling it with any argument is an error:
lastApp() takes 0 arguments, got 1.When no real Mac is behind it (tests, previews) or the Mac can't answer, it returns empty text.