User Tools

Site Tools


action:Execute_an_AppleScript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
action:Execute_an_AppleScript [2018/07/03 03:23]
peternlewis
action:Execute_an_AppleScript [2019/07/01 02:46]
peternlewis
Line 1: Line 1:
-{{:​scripting-icon.png?​nolink|}} 
 ====== Execute AppleScript Action ====== ====== Execute AppleScript Action ======
  
Line 25: Line 24:
 {{:​action:​execute-applescript-example-km8.png?​nolink|}} {{:​action:​execute-applescript-example-km8.png?​nolink|}}
  
----+If the script fails, the action will fail (v9.0+), potentially aborting the macro.
  
 ===== Scripting ===== ===== Scripting =====
Line 45: Line 44:
  
 ``` ```
- 
---- 
  
 ===== Using Keyboard Maestro Variables ===== ===== Using Keyboard Maestro Variables =====
Line 63: Line 60:
 tell application "​Keyboard Maestro Engine"​ to set myVar to getvariable "My KM Variable"​ tell application "​Keyboard Maestro Engine"​ to set myVar to getvariable "My KM Variable"​
 </​code>​ </​code>​
---- 
  
 **Using Keyboard Maestro Variables in a Shell Script from AppleScript** **Using Keyboard Maestro Variables in a Shell Script from AppleScript**
action/Execute_an_AppleScript.txt ยท Last modified: 2023/09/12 23:04 by peternlewis