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 19:58] JMichaelTX ADD example script for Local/Instance variables. |
action:Execute_a_JavaScript_For_Automation [2017/11/16 20:13] JMichaelTX [Get/Set Local & Instance Variables] |
||
---|---|---|---|
Line 18: | Line 18: | ||
===== Get/Set Keyboard Maestro Variables ===== | ===== Get/Set Keyboard Maestro Variables ===== | ||
+ | |||
+ | ==== Global Variables ==== | ||
- | ** Example JXA Script shows how to Get/Set Keyboard Maestro Variables, and Get/Set the System Clipboard.** | + | ** Example JXA Script shows how to Get/Set Keyboard Maestro //Global// Variables, and Get/Set the System Clipboard.** |
```javascript | ```javascript | ||
Line 64: | Line 66: | ||
--- | --- | ||
- | ==== Get/Set Local & Instance Variables ==== | + | ==== Local & Instance Variables ==== |
+ | **How To Get/Set Keyboard Maestro Local & Instance Variables** | ||
Keyboard Maestro Ver 8 introduced [[manual:Variables#Instance_Variables_v8|Local and Instance Variables]]. In order to get or set these, you need to use different parameters in the JXA get/set methods. Here is an example. | Keyboard Maestro Ver 8 introduced [[manual:Variables#Instance_Variables_v8|Local and Instance Variables]]. In order to get or set these, you need to use different parameters in the JXA get/set methods. Here is an example. |