Code:
--------------------
    
  on idle
        tell application "iChat"
                set status message to do shell script "/usr/local/bin/wget 
--quiet --output-document=-  
http://mediaserver:9000/xml/status.xml?player=sitting%20room | /usr/bin/grep 
'current_title' | /usr/bin/cut -d '>' -f 2 | /usr/bin/cut -d '<' -f 1"
        end tell
        return 60
  end idle
  
  
  
--------------------


where *mediaserver* is the alias/IPaddress of your slimserver
installation and *sitting room* is the squeezebox whose track I want to
be broadcasting.

Grabs the current song and displays it in ichat. This has probably been
done better elsewhere, but it works for me.

Enjoy,

Sacha

ps Obviously for macs. tested on a PPC G4 running tiger.


-- 
game0ver
------------------------------------------------------------------------
game0ver's Profile: http://forums.slimdevices.com/member.php?userid=8637
View this thread: http://forums.slimdevices.com/showthread.php?t=29979

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to