cheatsheets/applescript.md

404 B

title updated
AppleScript 2017-11-06

Running

osascript -e "..."

display notification "X" with title "Y"

Comments

-- This is a single line comment

# This is another single line comment

(*
This is 
a multi
line comment
*)

Say

say "Hi I am a Mac" -- default voice

say "Hi I am a Mac" using "Zarvox" -- specified voice

Beep

beep -- beep once

beep 10 -- beep 10 times