User Tools

Site Tools


manual:Variables

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
manual:Variables [2018/03/13 22:43]
JMichaelTX Clarify Local vs Instance Variables
manual:Variables [2018/03/13 22:49]
JMichaelTX [Using Variables in Scripts]
Line 139: Line 139:
 Variables values can be accessed from scripts you execute with Keyboard Maestro via environment variables, and from AppleScript using AppleScript commands to the Keyboard Maestro Engine, and from web browser JavaScript you execute with Keyboard Maestro via the document.kmvar dictionary, see the [[Scripting]] section for more details. Variables values can be accessed from scripts you execute with Keyboard Maestro via environment variables, and from AppleScript using AppleScript commands to the Keyboard Maestro Engine, and from web browser JavaScript you execute with Keyboard Maestro via the document.kmvar dictionary, see the [[Scripting]] section for more details.
  
-You can get and set Keyboard Maestro Variables in these types of scripts:+You can get and set Keyboard Maestro Variables ​(Global, Local, and Instance) ​in these types of scripts:
   * [[:​AppleScript|AppleScripts]]   * [[:​AppleScript|AppleScripts]]
   * [[action:​Execute_a_JavaScript_For_Automation#​GetSet_Keyboard_Maestro_Variables|JavaScript for Automation (JXA)]]   * [[action:​Execute_a_JavaScript_For_Automation#​GetSet_Keyboard_Maestro_Variables|JavaScript for Automation (JXA)]]
-  * [[action:​Execute_a_JavaScript_in_Google_Chrome|JavaScript in Safari or Google Chrome]]\\  +  * [[action:​Execute_a_JavaScript_in_Google_Chrome|JavaScript in Safari or Google Chrome]] (**Get only**)\\ 
-  * (Browser JavaScript can only GET Keyboard Maestro Variables. ​ They cannot be set there+
   * [[action:​Custom_HTML_Prompt#​Using_JavaScript|JavaScript in Custom HTML Prompts]] ​   * [[action:​Custom_HTML_Prompt#​Using_JavaScript|JavaScript in Custom HTML Prompts]] ​
-  * [[action:​Execute_a_Shell_Script|Shell Scripts]]+  * [[action:​Execute_a_Shell_Script|Shell Scripts]] ​(**Get only**)
   * [[action:​Execute_a_Swift_Script|Swift Scripts]]   * [[action:​Execute_a_Swift_Script|Swift Scripts]]
  
manual/Variables.txt · Last modified: 2023/09/29 04:44 by peternlewis