Read the rest of the article for the script and instructions.
[Editor's note: I have not tried this myself, but it seems like an interesting trick and opens up some cool posibilities for other dynamic content.]
Thanks to my friend Rick A. for this idea. Here's the AppleScript:
--Now, save this as a file and put it in your crontab to run every two minutes:
-- Set AIM Profile to contain current iTunes track
-- by Ian Langworth - www.logicallemon.com
-- 2/3/2002 - thanks to Rick A. for the idea
-- shouts to Rick and Adam F.
--
-- put the contents of your profile between these quotes
-- (the track name will go above)
property profilebits : "
home page: www.logicallemon.com
my music: www.logicallemon.com/music
"
-- this is the prompt that'll precede the track
property prompt : "WHAT'S PLAYING: "
-- ------------------------------------------
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
1) run 'crontab -e' in a Terminal
2) insert this line and save:
2 * * * * osascript /Users/me/Documents/the_script_i_just_saved

