Name(s) of currently selected macro group(s)?

thanks in advance for your time and help

The Keyboard Maestro GUI allows for selection of more than one macro group.

Where the selections are multiple, this returns group names on separate lines:

Names of any selected Macro Groups (one per line).kmmacros (3.2 KB)

2 Likes

PS no token route here, I think.

You should be able to check the full list of tokens provided by Keyboard Maestro at:

Tokens [Keyboard Maestro Wiki]

Hey @ronald :wave:

As Rob (@ComplexPoint) points out you can only define your own Variable via scripting (JXA or AppleScript) by using the selectedMacroGroup Property. You can use this for the name and also for the UUID.

However - if a Macro Group‘s Name or UUID is needed from within a running Macro you can use the MacroGoup related Tokens without any scripting at all.

Happy new Year

Greetings from Germany :de:

Tobias

1 Like

great ! works perfectly. I use it to add the name date time stamp to the backup file when I backup a macro group as a folder (usually the one I am actively working in). Very useful !