Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Marble

macrumors 6502a
Original poster
May 13, 2003
771
5
Tucson, AZ
I'm sharing my iTunes library with a few other Mac users in my University dorm. It'd be really nice if I could get an applescript that takes my currently playing song and then adds it to a smart playlist, that automatically updates, so other users would be able to see what song I am playing all the time, from their remote location.
I've seen scripts that copy a song file into a regular playlist, but I'd like it to be automatically updating. Does anyone know if this can be done, can help me, or just has the inclination to tell me to be quiet? It certainly isn't a necessity...
 
Re: Special iTunes Script

Originally posted by Marble
I'm sharing my iTunes library with a few other Mac users in my University dorm. It'd be really nice if I could get an applescript that takes my currently playing song and then adds it to a smart playlist, that automatically updates, so other users would be able to see what song I am playing all the time, from their remote location.
I've seen scripts that copy a song file into a regular playlist, but I'd like it to be automatically updating. Does anyone know if this can be done, can help me, or just has the inclination to tell me to be quiet? It certainly isn't a necessity...

Well, this isn't exactly what you were asking for but it may work for you. It sets your status message in iChat to reflect what artist you are currently listening to. You can easily modify the script to show what song is playing if you like.

Here it is:

on idle
_tell application \"itunes\"
__if player state is playing then
___set a to artist of current track
___if a is \"\" then
____set a to \"mysterious unknown music\"
___end if
__else
___set a to \"nothing\"
__end if
_end tell

_tell application \"iChat\"
__set status message to \"listening to \" & a
_end tell

_return 20
end idle
 
Yeah, I've seen that one around. It would be a whole lot more useful if I used iChat more often. As it stands now, though...

Thanks for helping me, anyway.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.