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 | ||
AppleScript [2017/06/04 22:08] JMichaelTX [Create & Set Variable] Replace script with Ver 6+ compatible |
AppleScript [2017/06/04 22:18] JMichaelTX [Set Variable] |
||
---|---|---|---|
Line 86: | Line 86: | ||
| | ||
--- Compatible with Keyboard Maestro 6+ --- | --- Compatible with Keyboard Maestro 6+ --- | ||
- | -- • Creates the KM Variable it does not exist (just like KM 7 setvariable) | + | -- • Creates the KM Variable if does not exist (just like KM 7 setvariable) |
-- • Returns true if new Variable was created | -- • Returns true if new Variable was created | ||
| | ||
Line 116: | Line 116: | ||
- | ==== Get Existing Variable ==== | + | ==== Get Variable ==== |
+ | (returns empty string "" if Variable does //not// exist) | ||
```applescript | ```applescript | ||
Line 125: | Line 126: | ||
--- Compatible with Keyboard Maestro 6+ --- | --- Compatible with Keyboard Maestro 6+ --- | ||
- | -- • Returns "" if variable is not found (just like KM 7) | + | -- • Returns "" if variable is not found (just like KM 7 getvariable) |
| | ||
tell application "Keyboard Maestro Engine" | tell application "Keyboard Maestro Engine" |