You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bat/tests/syntax-tests/highlighted/AppleScript/test.applescript

26 lines
2.8 KiB
AppleScript

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

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