applescript: enable syntax highlighting (#238)
This commit is contained in:
parent
2d4fcfc80c
commit
65dee86302
|
@ -2,29 +2,30 @@
|
||||||
title: AppleScript
|
title: AppleScript
|
||||||
updated: 2018-03-17
|
updated: 2018-03-17
|
||||||
layout: 2017/sheet
|
layout: 2017/sheet
|
||||||
|
prism_languages: [applescript]
|
||||||
---
|
---
|
||||||
|
|
||||||
### Running
|
### Running
|
||||||
|
|
||||||
```
|
```applescript
|
||||||
osascript -e "..."
|
osascript -e "..."
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```applescript
|
||||||
display notification "X" with title "Y"
|
display notification "X" with title "Y"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Comments
|
### Comments
|
||||||
|
|
||||||
```
|
```applescript
|
||||||
-- This is a single line comment
|
-- This is a single line comment
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```applescript
|
||||||
# This is another single line comment
|
# This is another single line comment
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```applescript
|
||||||
(*
|
(*
|
||||||
This is
|
This is
|
||||||
a multi
|
a multi
|
||||||
|
@ -34,24 +35,24 @@ line comment
|
||||||
|
|
||||||
### Say
|
### Say
|
||||||
|
|
||||||
```
|
```applescript
|
||||||
-- default voice
|
-- default voice
|
||||||
say "Hi I am a Mac"
|
say "Hi I am a Mac"
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```applescript
|
||||||
-- specified voice
|
-- specified voice
|
||||||
say "Hi I am a Mac" using "Zarvox"
|
say "Hi I am a Mac" using "Zarvox"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Beep
|
### Beep
|
||||||
|
|
||||||
```
|
```applescript
|
||||||
-- beep once
|
-- beep once
|
||||||
beep
|
beep
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```applescript
|
||||||
-- beep 10 times
|
-- beep 10 times
|
||||||
beep 10
|
beep 10
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue