Some subtleties here, perhaps:
- The last triggered macro is presumably always this one, so we may often be looking for the penultimate trigger event
- The entry to the
Keyboard Maestro Macro Stats.plist
file is presumably written when a macro concludes (rather than starts), so if two are running we may need to distinguish between most recently started and the most recently finished. (which may be the same).
For a macro which lists the N most recent trigger events recorded in Keyboard Maestro Macro Stats.plist
, with the names and UUIDs of the triggered macros, see: