AppleScript Startup

xQuBit

rookie to the game
Hi, für alle die ihren Mac auch als z.B. Wecker einsetzen, hier ein AppleScript:

set theDate to current date
set theTime to time of the theDate
set theDay to weekday of theDate
set theVoice to some item of {"Vicky"}

if theTime < 21600 then
set theMsg to "Up late, eh Dude?It's " & theDay & "."
else if theTime < 43200 then
set theMsg to "Good Morning! It's " & theDay & "."
else if theTime < 64800 then
set theMsg to "Good Afternoon! It's " & theDay & "."
else
set theMsg to "Good Evening! It's " & theDay & " night."
end if

tell application "Finder"
activate
say theMsg using theVoice
end tell

delay 15

say "I'll put some music on"

tell application "iTunes"
activate
set sound volume to 75
set theTrack to some file track of user playlist "Meine Top 25"
set theTrackName to name of theTrack
set theTrackArtist to artist of theTrack
play theTrack
set collapsed of window 1 to true
end tell

tell application "iTunes"
activate
set sound volume to 15
say "This is " & theTrackName & ", by " & ¬
theTrackArtist & ". "
set sound volume to 75
end tell

delay 5

tell application "Adium"
activate
end tell

delay 5

tell application "Colloquy"
activate
end tell

delay 10

property theURL : "http://www.spiegel.de"
open location theURL

delay 10

tell application "Mail"
check for new mail

delay 30
set unreadCount to unread count of inbox
tell application "iTunes"
set sound volume to 15
delay 1
if unreadCount is equal to 0 then say ¬
"You have no new messages!"
if unreadCount is equal to 1 then say ¬
"You have a new message!"
if unreadCount is greater than 1 then say ¬
"You have " & unreadCount & " new messages!"
delay 1
set sound volume to 75
end tell
end tell

(info: Adium - alle Messengerdienste in einem, Colloguy - ein IRC Client) :D
 
Zuletzt bearbeitet:
Zurück
Oben