This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
JavaScript_for_Automation [2017/04/04 20:38] JMichaelTX Revised title and outline to better reflect contents; Moved the KM stuff to top |
JavaScript_for_Automation [2019/01/12 12:43] (current) JMichaelTX [Accessing Keyboard Maestro Variables] ADD Link to Get/Set Local/Instance Vars |
||
---|---|---|---|
Line 57: | Line 57: | ||
kme.setvariable('My Other KM Var', { to: scriptResults }); | kme.setvariable('My Other KM Var', { to: scriptResults }); | ||
</code> | </code> | ||
+ | |||
+ | Also see **[[action:Execute_a_JavaScript_For_Automation#Local_Instance_Variables|How To Get/Set Keyboard Maestro Local & Instance Variables using JXA]]** | ||
JXA can get a list of all variables as described on the [forum](https://forum.keyboardmaestro.com/t/using-km-variables-in-yosemite-javascript-for-applications-jxa/889) and those methods also provide more convoluted ways to access variables for versions prior to 7.1. | JXA can get a list of all variables as described on the [forum](https://forum.keyboardmaestro.com/t/using-km-variables-in-yosemite-javascript-for-applications-jxa/889) and those methods also provide more convoluted ways to access variables for versions prior to 7.1. | ||
+ | |||
**For more info on using JXA with Keyboard Maestro, see:** | **For more info on using JXA with Keyboard Maestro, see:** |