Feature Request: AppleScript Parity Between Macro Groups and Smart Macro Groups

Hey Peter (@peternlewis),

I just noticed that Smart Macro Groups are second class citizens when it comes to scripting.

Is it possible to provide AppleScript property and element parity between the two?

-Chris

How so?

Perhaps not so much 2nd class citizens as different types of object ?

What values would you like the scripting API to return for:

  1. the search string of a group defined in the KM .plist file ?
  2. the [... xml] of a string-based query ?

Try this for example:

tell application "Keyboard Maestro"
   set smartMacroGroup to smart group "Recently Imported"
   set macroList to macros of smartMacroGroup
end tell

-Chris

4 Likes

Macros are not contained by Smart Groups. Maybe I can do it, I don't know.

Anyway, not any time soon I'm afraid.

Hey Peter,

That would be great if you can.

I know you have other fish to fry right now.  :wink:

-Chris

Despite the fact that Discourse does not like me reviving a topic from 4 years ago, nevertheless, macros of smartMacroGroup is done for the next version.

See, I was right.

9 Likes

Thanks Peter! This makes me wish I remember what macro I was trying to build about a year ago that returns a list of macros in a smart group... :thinking::sweat_smile:

2 Likes