applescript: enable syntax highlighting (#238)

This commit is contained in:
Rico Sta. Cruz 2018-03-19 12:09:42 +08:00
parent 2d4fcfc80c
commit 65dee86302
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 10 additions and 9 deletions

View File

@ -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
```