### Requires Keyboard Maestro 8.0.3+ ### set kmInst to system attribute "KMINSTANCE" tell application "Keyboard Maestro Engine" set kmLocalVar1 to getvariable "Local__SomeLocalVariable" instance kmInst setvariable "Local__FromAS" instance kmInst to "Variable set in AppleScript." end tell log kmLocalVar1