User Tools

Site Tools


token:TriggerValue

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
token:TriggerValue [2015/07/15 06:18]
peternlewis created
token:TriggerValue [2015/07/23 08:14]
peternlewis
Line 1: Line 1:
-The //​%TriggerValue%//​ token returns the value associated with the trigger (eg the typed string, or the hot key pressed, or the parameter ​passed by the [Execute a Macro action](action:​Execute_a_Macro) ​or via AppleScript or the web server.+The //​%TriggerValue%//​ token returns the value associated with how the macro was triggered. 
 + 
 +Different ways ofd triggering ​the macro will set this field differently. 
 + 
 +* You can pass an explicit value in using the "​with ​parameter" option when executing a script from AppleScript. 
 +* You can pass 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 web server. 
 +* You can pass an explicit value in when executing the macro via the [kmtrigger URL](trigger:​URL). 
 +* It will reflect the exact text you typed to trigger a [Typed String trigger](trigger:​Typed_String). 
 +* It will reflect the current modifiers when triggering a macro via the Status Menu or a Palette (Note that Option means "edit this macro instead of triggering it"​). 
 +* It will reflect the hot key or device key pressed. 
 +* It will reflect the hot key or device key pressed. 
 +* It will reflect the name of the file added/​removed from a folder. 
 + 
token/TriggerValue.txt · Last modified: 2021/11/24 01:41 by peternlewis