diff --git a/applescript.md b/applescript.md index 94556343c..b047b808c 100644 --- a/applescript.md +++ b/applescript.md @@ -2,29 +2,30 @@ title: AppleScript updated: 2018-03-17 layout: 2017/sheet +prism_languages: [applescript] --- ### Running -``` +```applescript osascript -e "..." ``` -``` +```applescript display notification "X" with title "Y" ``` ### Comments -``` +```applescript -- This is a single line comment ``` -``` +```applescript # This is another single line comment ``` -``` +```applescript (* This is a multi @@ -34,24 +35,24 @@ line comment ### Say -``` +```applescript -- default voice say "Hi I am a Mac" ``` -``` +```applescript -- specified voice say "Hi I am a Mac" using "Zarvox" ``` ### Beep -``` +```applescript -- beep once beep ``` -``` +```applescript -- beep 10 times beep 10 ```