From 79d8351da7c59d834226e1ec3748f8f1da5fe101 Mon Sep 17 00:00:00 2001 From: hezhizhen Date: Mon, 6 Nov 2017 23:19:28 +0800 Subject: [PATCH 1/4] add comments --- applescript.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/applescript.md b/applescript.md index 5e0b005bd..f0e6f446d 100644 --- a/applescript.md +++ b/applescript.md @@ -1,5 +1,6 @@ --- title: AppleScript +updated: 2017-11-06 --- Running @@ -7,3 +8,15 @@ 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 + *) \ No newline at end of file From a3a09a10ffcc8b9c6c5985700a51c8e7c271db82 Mon Sep 17 00:00:00 2001 From: hezhizhen Date: Mon, 6 Nov 2017 23:20:53 +0800 Subject: [PATCH 2/4] add say --- applescript.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/applescript.md b/applescript.md index f0e6f446d..6a49a8b74 100644 --- a/applescript.md +++ b/applescript.md @@ -19,4 +19,11 @@ Comments This is a multi line comment - *) \ No newline at end of file + *) + +Say + + say "Hi I am a Mac" + + say "Hi I am a Mac" using "Zarvox" + From e9cab98efadb541a228400b6ecb310b0cdbc6d7b Mon Sep 17 00:00:00 2001 From: hezhizhen Date: Mon, 6 Nov 2017 23:22:28 +0800 Subject: [PATCH 3/4] add beep --- applescript.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/applescript.md b/applescript.md index 6a49a8b74..2090b6a9d 100644 --- a/applescript.md +++ b/applescript.md @@ -23,7 +23,12 @@ Comments Say - say "Hi I am a Mac" + say "Hi I am a Mac" -- default voice - say "Hi I am a Mac" using "Zarvox" + say "Hi I am a Mac" using "Zarvox" -- specified voice +Beep + + beep -- beep once + + beep 10 -- beep 10 times \ No newline at end of file From 8006a7f1e5161f106d9957694244f5b177a98c8f Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sat, 17 Mar 2018 10:06:14 +0800 Subject: [PATCH 4/4] 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 +```