Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'forget crontab!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
forget crontab!
Authored by: MeStinkBAD on Feb 07, '02 09:15:01AM

Ummm... wouldn't the better approach be to create an script application that uses the idle handler? Something like this...

---

on display_iTunes_data()
tell application "Finder"
if not (exists process "iTunes") or not (exists process "AOL Instant Messenger (SM)") then
return true -- don't do anything if iTunes isn't running
end if
end tell

try
tell application "iTunes"
set theSong to (artist of current track) & " - "" & (name of current track) & """
end tell
on error
set theSong to "(no song playing)"
end try
try
tell application "AOL Instant Messenger (SM)"
set profile to prompt & theSong & return & profilebits
end tell
end try
end display_iTunes_data

on idle {}
display_iTunes_data()
return 60
end idle

---

I don't use AIM so I dunno if this will work, but it does compile! :)



[ Reply to This | # ]