This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
action:Execute_a_JavaScript_For_Automation [2017/11/16 20:13] JMichaelTX [Get/Set Local & Instance Variables] |
action:Execute_a_JavaScript_For_Automation [2023/04/03 00:01] peternlewis |
||
---|---|---|---|
Line 16: | Line 16: | ||
*Asynchronously ignored — the action runs while the macro continues on. | *Asynchronously ignored — the action runs while the macro continues on. | ||
+ | By default, errors are not included in the output, and the output is trimmed of white space. These can be adjusted in the action (gear) ⚙ menu. | ||
===== Get/Set Keyboard Maestro Variables ===== | ===== Get/Set Keyboard Maestro Variables ===== | ||
Line 64: | Line 65: | ||
``` | ``` | ||
- | --- | + | |
+ | Local and Instance variables are available (as described below), but Password variables are not. | ||
==== Local & Instance Variables ==== | ==== Local & Instance Variables ==== | ||
+ | |||
**How To Get/Set Keyboard Maestro Local & Instance Variables** | **How To Get/Set Keyboard Maestro Local & Instance Variables** | ||
Line 81: | Line 84: | ||
kmeApp.setvariable("Local__FromJXA", {instance: kmInst, to: "Set in JXA Script"}) | kmeApp.setvariable("Local__FromJXA", {instance: kmInst, to: "Set in JXA Script"}) | ||
``` | ``` | ||
- | |||
- | --- | ||
===== Displaying User Dialogs ===== | ===== Displaying User Dialogs ===== |