set kmInst to system attribute "KMINSTANCE" tell application "Keyboard Maestro Engine" set v to getvariable "Local__SomeLocalVariable" instance kmInst setvariable "Local__FromAS" instance kmInst to "Variable set in AppleScript." end tell log v