summaryrefslogtreecommitdiffstats
path: root/tests/syntax-tests/highlighted/AppleScript/test.applescript
blob: f3692a841a2640a13d4b7dfa62efac2e891db53e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
-- This is a comment

property defaultClientName : "Mary Smith"

on greetClient(nameOfClient)
    display dialog ("Hello " & nameOfClient & "!")
end greetClient


script testGreet
    greetClient(defaultClientName)
end script

run testGreet
greetClient("Joe Jones")

set myList to {1, "what", 3}
set beginning of myList to 0
set end of myList to "four"

myList

tell application "TextEdit"
    paragraph 1 of document 1
end tell