Aug 18, '05 08:43:00AM • Contributed by: wheeles
To use applescript to set the iChat 3.0 status message to the "Current iTunes Track" setting you need to set it to the status message to the current format of the iTunesMessageFormat string.
So for the default format you would use:
tell application "iChat"
set the status message to "%Track - %Artist"
end tell
and if you had changed the iTunesMessageFormat in the way described in this tip, then you need to use:
tell application "iChat"
set the status message to "%Artist - %Track"
end tell
I've tested these two, but have not tested all the possible format alternatives.
[robg adds: Yes, iTunes now includes the ability to do this automatically, but if you want to use an AppleScript (perhaps to toggle the status display based on time of day, location, etc., then this appears to be the way to do it...]
