A dictionary is not required; just my personal preference. (If you are interested, here's some related information: MACRO: Store Macro Settings in a Dictionary for Reuse)
As @griffman suggested you could use a global variable.
Here's a second version of the macro using a global variable rather than a dictionary.
Download: Run First v2.kmmacros (2.7 KB)
Macro-Notes
- 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 15.5 (24F74)
- Keyboard Maestro v11.0.4
Download: Run Second v2.kmmacros (5.2 KB)
Macro-Notes
- 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 15.5 (24F74)
- Keyboard Maestro v11.0.4

