MACRO: Create a Macro Selection Macro, v1.0

In the tutorial section, I've shared my motivation to create and share this macro: Do I have too many great macros in my library?


If this macro is triggered when one or more macros are selected in the Keyboard Maestro editor, it will display a dialog, and based on dialog selections, create another macro that contains a Show Palette of Macros or Trigger Macro by Name action with the selected macros configured.


  • Action : Show Palette of Macros | Trigger Macro by Name

  • 𝘚𝘩𝘰𝘸 𝘗𝘢𝘭𝘦𝘵𝘵𝘦 𝘰𝘧 𝘔𝘢𝘤𝘳𝘰𝘴 Allowed : Active macros | Enabled macros | All Macros

  • 𝘛𝘳𝘪𝘨𝘨𝘦𝘳 𝘔𝘢𝘤𝘳𝘰 𝘣𝘺 𝘕𝘢𝘮𝘦 Allowed : Active macros | Enabled macros | All Macros

  • Destination : the Macro Group of the first selected macro | Global Macro Group

All dialog selections except Destination will be retained and become the initial choices when this macro is subsequently run. (The values are saved in a dictionary.)

Macros from a Smart Group can be selected. If these selected macros are from the same Macro Group, then the Destination will default to that Macro Group; otherwise it will default to the Global Macro Group.


The logic that uses the selected macros to populate and create the Show Palette of Macros action was taken from Show a Palette of Macros - Auto-Create and Populate developed and contributed by @noisneil (with help from @Nige_S.) Thankfully very similar logic could be used within this macro to create the Trigger Macro by Name action. That's yet another testament to the amazing design of Keyboard Maestro. Thank you, @peternlewis!


• Keyboard Maestro 11.0.3
• Sonoma 14.5 (23F79)/MacBookPro18,2
• Sonoma 14.5 (23F79)/VariableMacBookPro16,1
• Mojave 10.14.16/Macmini6,2
• High Sierra 10.13.6/iMac11,1445


1.0 initial version

Download: Create a Macro Selection Macro.kmmacros (122 KB)


  • Macros are always disabled when imported into the Keyboard Maestro Editor.
    • The user must ensure the macro is enabled.
    • The user must also ensure the macro's parent macro-group is enabled.

System Information
  • macOS 14.5 (23F79)
  • Keyboard Maestro v11.0.3

1 Like

Thank you for sharing this useful macro. Here is a picayune question: how do you achieve text styling in the dialogs and comment macros?

1 Like

Hi, @BKammer. Glad you find the macro useful.

  1. Comments : I normally compose header comments in TextEdit and then paste them into a Comment action. My personal preference is to use Helvetica Neue, 13pt. Font colors, bold, italics, and links transfer just fine. Once pasted into the comment, options under Edit > Format can be used.

  2. Dialogs : Since Prompt For User Input actions don't accept rich text, I use unicode variants. I've done that with a utility macro that I just spruced up to share: Plain Text to Unicode Variants


You're a peach.

1 Like

AWESOME, thank you.

1 Like

@BKammer and @cfriend: Another option is to use this macro that I just revised and posted,