User Tools

Site Tools


JavaScript_for_Automation

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
JavaScript_for_Automation [2016/04/27 09:24]
peternlewis [Which Execute JavaScript Should You Use?]
JavaScript_for_Automation [2016/04/27 09:28]
peternlewis [The Automation interface]
Line 273: Line 273:
  
 to follow ... to follow ...
 +
 +=====Accessing Keyboard Maestro Variables=====
 +
 +You can access Keyboard Maestro variables from JXA scripts using the Keyboard Maestro Engine application.
 +
 +var kme = Application("​Keyboard Maestro Engine"​);​
 +kme.getvariable('​Var'​);​
 +// kme.setvariable('​Var',​ { to: "Hello There World!"​ });
  
 =====The Automation interface===== =====The Automation interface=====
JavaScript_for_Automation.txt · Last modified: 2019/01/12 12:43 by JMichaelTX