Re: Ichat applescript question
Re: Ichat applescript question
- Subject: Re: Ichat applescript question
- From: Christopher Biagini <email@hidden>
- Date: Wed, 26 Jan 2005 11:13:32 -0500
Whoops. Never sent this to the actual list.
On Jan 25, 2005, at 8:37 PM, dor kelman wrote:
I figured out how to write a script to make the song that im playing
in itunes to show up as my away message but it only works one time
when I push "run" on applescript studio. I would like it to do it
automatically every time the song changes.
You don't really need a full-blown AS Studio app. Try putting this into
Script Editor:
on idle
tell application "iTunes"
set the_artist to artist of current track
set the_title to name of current track
end tell
set the_message to the_title & " by " & the_artist
tell application "iChat"
set status message to the_message
end tell
return 60
end idle
Save it as an application (drop-down in the Save dialog), and check the
"Stay Open" box. Double-click to run it, and you're good to go. The
script will update your iChat status once every sixty seconds; to
change that interval, just change the number in the "return" statement
towards the end. Doing it with a normal loop is too fast, and that's
probably why your apps are freaking out. (I can't think of a way to
change your status the *instant* your song changes, but this should do
just fine.)
You also might want to check out a free preference pane called
iChatStatus, which updates pretty quickly (though not instantly):
<http://www.ittpoi.com/ichatstatus/>
--Chris Biagini
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden