Testing (in osascript) whether a named macro exists?

Short of catching errors when calling KM Engine’s .doScript method, are there any other ways of checking whether a macro of a given name exists ?

You could search for it in the Keyboard Maestro Macros.plist (for a unique name, a simple grep would probably be sufficient).

7.0 adds a %MacroNameForUUID%UUID% which would tell you if a given UUID existed as a macro.

That’s about all I can think of.

1 Like