This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
AppleScript [2017/10/13 20:46] JMichaelTX ADD section headers, and clarify Local/Instance variables |
AppleScript [2019/03/28 14:41] (current) JMichaelTX ADD tell block to first example. |
||
---|---|---|---|
Line 5: | Line 5: | ||
In AppleScript, you can tell the application "Keyboard Maestro Engine" to: | In AppleScript, you can tell the application "Keyboard Maestro Engine" to: | ||
+ | ```applescript | ||
+ | tell application "Keyboard Maestro Engine" | ||
getvariable <KM Variable Name> | getvariable <KM Variable Name> | ||
setvariable <KM Variable Name> to <New Value> | setvariable <KM Variable Name> to <New Value> | ||
+ | end tell | ||
+ | ``` | ||
where both the `<KM Variable Name>` and `<New Value>` are text values. | where both the `<KM Variable Name>` and `<New Value>` are text values. | ||
- | **For more details, see [[manual:Scripting|Scripting article in the Manual Section]].** | + | **For more details, see:** |
+ | - [[manual:Scripting|Scripting article in the Manual Section]]. | ||
+ | - [[action:Execute_an_AppleScript|Execute AppleScript Action]]. | ||
===== Global Variables ===== | ===== Global Variables ===== |