action:Execute_a_JavaScript_For_Automation
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| action:Execute_a_JavaScript_For_Automation [2025/08/18 02:12] – [Modern Syntax] peternlewis | action:Execute_a_JavaScript_For_Automation [2025/08/18 02:17] (current) – [Local & Instance Variables] peternlewis | ||
|---|---|---|---|
| Line 94: | Line 94: | ||
| ==== Local & Instance Variables ==== | ==== Local & Instance Variables ==== | ||
| - | Keyboard Maestro has [[manual: | + | Keyboard Maestro has [[manual: |
| ```javascript | ```javascript | ||
| Line 106: | Line 106: | ||
| kmeApp.setvariable(" | kmeApp.setvariable(" | ||
| ``` | ``` | ||
| + | |||
| + | Note that this method is only useful if you are not using Modern Syntax (since you can access the local variables directly through the `kmvar` hash), and you need the instance information by some means (passed as an environment variable in the case of the `Execute a JavaScript For Automation` action, but in other cases external to the Keyboard Maestro Engine you would need some other method of getting it). | ||
| + | |||
| ===== Displaying User Dialogs ===== | ===== Displaying User Dialogs ===== | ||
action/Execute_a_JavaScript_For_Automation.txt · Last modified: by peternlewis
