Merge branch 'pr-238'
This commit is contained in:
commit
4ccac685ad
|
@ -1,9 +1,57 @@
|
||||||
---
|
---
|
||||||
title: AppleScript
|
title: AppleScript
|
||||||
|
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
|
||||||
|
|
||||||
|
```
|
||||||
|
-- This is a single line comment
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
# This is another single line comment
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
(*
|
||||||
|
This is
|
||||||
|
a multi
|
||||||
|
line comment
|
||||||
|
*)
|
||||||
|
```
|
||||||
|
|
||||||
|
### Say
|
||||||
|
|
||||||
|
```
|
||||||
|
-- default voice
|
||||||
|
say "Hi I am a Mac"
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
-- specified voice
|
||||||
|
say "Hi I am a Mac" using "Zarvox"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Beep
|
||||||
|
|
||||||
|
```
|
||||||
|
-- beep once
|
||||||
|
beep
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
-- beep 10 times
|
||||||
|
beep 10
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue