From 8006a7f1e5161f106d9957694244f5b177a98c8f Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sat, 17 Mar 2018 10:06:14 +0800 Subject: [PATCH] applescript: update layout --- applescript.md | 59 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 18 deletions(-) diff --git a/applescript.md b/applescript.md index 2090b6a9d..94556343c 100644 --- a/applescript.md +++ b/applescript.md @@ -1,34 +1,57 @@ --- title: AppleScript -updated: 2017-11-06 +updated: 2018-03-17 +layout: 2017/sheet --- -Running +### Running - osascript -e "..." +``` +osascript -e "..." +``` - display notification "X" with title "Y" +``` +display notification "X" with title "Y" +``` -Comments +### Comments - -- This is a single line comment +``` +-- This is a single line comment +``` - # This is another single line comment +``` +# This is another single line comment +``` - (* - This is - a multi - line comment - *) +``` +(* +This is +a multi +line comment +*) +``` -Say +### Say - say "Hi I am a Mac" -- default voice +``` +-- default voice +say "Hi I am a Mac" +``` - say "Hi I am a Mac" using "Zarvox" -- specified voice +``` +-- specified voice +say "Hi I am a Mac" using "Zarvox" +``` -Beep +### Beep - beep -- beep once +``` +-- beep once +beep +``` - beep 10 -- beep 10 times \ No newline at end of file +``` +-- beep 10 times +beep 10 +```