title | updated | category | prism_languages | |
---|---|---|---|---|
AppleScript |
2018-12-06 |
macOS |
|
osascript -e "..."
display notification "X" with title "Y"
-- This is a single line comment
# This is another single line comment
(*
This is
a multi
line comment
*)
-- default voice
say "Hi I am a Mac"
-- specified voice
say "Hi I am a Mac" using "Zarvox"
-- beep once
beep
-- beep 10 times
beep 10
-- delay for 5 seconds
delay 5
on doubleNumber(n)
return n * 2
end doubleNumber
set doubledValue to my doubleNumber(2)