×

Run Apple Script

macOS 12 +

Notes

Runs the given Apple Script code. For code to run when the action is executed, you must include it inside on run {input, parameters} (* Your script goes here *) return input end run

Syntax

runAppleScript(input: <#Variable#>, script: <#String (Allows Variables)#>)

Example

runAppleScript(input: ShortcutInput, script: "log "Hello World!"")