Special iTunes Script

Discussion in 'Mac Apps and Mac App Store' started by Marble, Sep 6, 2003.

  1. Marble macrumors 6502a

    Marble

    Joined:
    May 13, 2003
    Location:
    Tucson, AZ
    #1
    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...
     
  2. DVDSP macrumors regular

    Joined:
    Jan 6, 2003
    Location:
    Southwick, MA
    #2
    Re: Special iTunes Script

    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
     
  3. Marble thread starter macrumors 6502a

    Marble

    Joined:
    May 13, 2003
    Location:
    Tucson, AZ
    #3
    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.
     

Share This Page