Have you ever wanted to let the world know what song you're currently listening to? If you use AIM (America Online's Instant Messenger), now you can! The following AppleScript takes the currently playing song and places it in your AIM profile for all to see.
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
2 * * * * osascript /Users/me/Documents/the_script_i_just_saved
Mac OS X Hints
http://hints.macworld.com/article.php?story=20020206092212366