tell application "Finder"
activate
end tell
Открыть домашнюю папку пользователя в FinderЗагрузить
tell application "Finder"
open home
end tell
Переключить iTunes на паузу/воспроизведениеЗагрузить
tell application "iTunes"
playpause
end tell
Перейти к следующей записи в iTunesЗагрузить
tell application "iTunes"
play (next track)
end tell
Перейти к предыдущей записи в iTunesЗагрузить
tell application "iTunes"
play (previous track)
end tell
Открыть новую вкладку в Safari с заданным адресомЗагрузить
tell application "Safari"
activate
tell window 1
set current tab to make new tab with properties {URL:"http://apple.com"}
end tell
end tell
Создать новое письмо в MailЗагрузить
tell application "Mail"
make new outgoing message with properties {visible:true}
activate
end tell
Создать новый документ в TextEditЗагрузить
tell application "TextEdit"
make new document
activate
end tell
Перевести Mac в режим снаЗагрузить
tell application "Finder"
sleep
end tell