- -- We need to up the alarm volume, or lower it incase
- -- we've forgotten to change it
- set volume 2
- -- Open iTunes and play the good morning tunes
- tell application "iTunes"
- play playlist "Wake Up Songs"
- end tell
- -- Test whether or not Mail is running
- tell application "System Events"
- set noMail to not (exists process "Mail")
- end tell
- if noMail then
- tell application "Mail" to activate
- tell application "System Events"
- repeat until exists process "Mail"
- delay 1
- end repeat
- end tell
- delay 10
- end if
- -- Now get Mail to activate and check for new messages
- tell application "Mail" to activate
- tell application "Mail" to check for new mail
- -- We'll also get Adium on screen
- tell application "Adium" to activate
Download as Text : January 6th, 2009
This work is licensed under a