One for the Ver 10 Wiki updates:
The variables section at:
manual:Variables [Keyboard Maestro Wiki]
includes a table cell on contexts in which Instance
variable values are accessible:
- Accessible by Prompt For User Input
- Accessible by scripts (when used in an Execute Script Action).
- Accessible by Custom HTML Prompt.
- Accessible by AppleScript with the
instance
specifier.
It seems, empirically, that we could now add a further context to this list – parameter variables for subroutines
So that if I create a macro with a trigger like this, using an instance
-prefixed variable name:
I can then call the macro as a subroutine, and will be offered a corresponding (abbreviated) prompt for the parameter value:
Subroutine test Macros.kmmacros (12.5 KB)