This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
JavaScript_for_Automation [2016/04/27 09:28] peternlewis [The Automation interface] |
JavaScript_for_Automation [2016/04/27 09:28] peternlewis |
||
---|---|---|---|
Line 278: | Line 278: | ||
You can access Keyboard Maestro variables from JXA scripts using the Keyboard Maestro Engine application. | You can access Keyboard Maestro variables from JXA scripts using the Keyboard Maestro Engine application. | ||
+ | <code javascript> | ||
var kme = Application("Keyboard Maestro Engine"); | var kme = Application("Keyboard Maestro Engine"); | ||
kme.getvariable('Var'); | kme.getvariable('Var'); | ||
// kme.setvariable('Var', { to: "Hello There World!" }); | // kme.setvariable('Var', { to: "Hello There World!" }); | ||
+ | </code> | ||
=====The Automation interface===== | =====The Automation interface===== |