/ token returns the value associated with how the macro was triggered.
Different ways of triggering the macro will set this field differently.
* You can pass ... ss an explicit value in when using the [Execute a Macro action](action:Execute_a_Macro).
* You can pass an explicit value in when executing the macro via the we
=
This [[:Tokens|token]] returns the name of the macro or macro group with the specified **UUID**. If the macro does not exist, then this will return "Not Found" so yo... s a simple test for the existence of a particular macro.
===== How To Use =====
==== General Form ====
gThisMacroUUID%]]// token returns the UUID of the macro the action is within.
===== See Also =====
====... rum ====
- [[https://forum.keyboardmaestro.com/t/macro-get-selected-macro-uuid-and-name-without-the-clipboard/4330|MACRO: Get Selected Macro UUID (and name) (without the clipboar
ding both the execution instance and the specific macro executing. It can be used to retrieve Local and ... iables via AppleScript and to cancel the specific macro instance.
===== See Also =====
=== Actions ===
* [[action:Cancel_a_Specific_Macro|Cancel a Specific Macro]] action
* [[:Actions|See all Actions]]
==== Tokens ====
* [[token:ExecutingMa
cutingMacroGroup%// token returns the name of the macro group containing the currently executing macro.
The //%ExecutingMacroGroupUUID%// token returns the UUID of the macro group containing the currently executing macro.
===== See Also =====
==== Tokens ====
* [[token:Execu
a unique ID for this Mac. You can test this with Macro Syncing to have your macro behave differently on different Macs.
For example, use the [[action:Set_Clip... "Try" the action to copy it, no need to create a macro, then you can delete the action.
Then paste that
iables via AppleScript and to cancel the specific macro instances.
===== See Also =====
=== Actions ===
* [[action:Cancel_a_Specific_Macro|Cancel a Specific Macro]] action
* [[:Actions|See all Actions]]
==== Tokens ====
* [[token:ExecutingMa
ngThisMacroGroup%// token returns the name of the macro group the action is within.
The //%ExecutingThisMacroGroupUUID%// token returns the UUID of the macro group the action is within.
===== See Also =====