AppleScript
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| AppleScript [2025/02/27 06:40] – [Using AppleScript to Get and Set Keyboard Maestro Variables] peternlewis | AppleScript [2025/02/27 06:45] (current) – [Local & Instance Variables] peternlewis | ||
|---|---|---|---|
| Line 80: | Line 80: | ||
| - | To get or set [[manual: | + | To get or set [[manual: |
| - | + | ||
| - | * //Local Variables// are denoted by a Variable with the prefix of " | + | |
| - | * //Instance Variables// are denoted by a Variable with the prefix of " | + | |
| ```applescript | ```applescript | ||
| - | ### Requires Keyboard Maestro 8.0.3+ ### | ||
| - | |||
| set kmInst to system attribute " | set kmInst to system attribute " | ||
| tell application " | tell application " | ||
| - | set kmLocalVar1 | + | set v to getvariable " |
| setvariable " | setvariable " | ||
| end tell | end tell | ||
| - | log kmLocalVar1 | + | log v |
| ``` | ``` | ||
AppleScript.1740638449.txt.gz · Last modified: by peternlewis
