iTunes2irssi icon
What is iTunes2irssi?
How do I install it?
How does it work?
Does it work with other IRC clients?
Download

What is iTunes2irssi?

iTunes2irssi is a perl script for the IRC client irssi. It allows simple control over iTunes from playing/pausing tracks, next/previous track and displaying what your currently listening to. I hope to add playlist controls in the near feature. You can find other irssi scripts here.

How do I install it?

First you need to download and install the perl module Mac::AppleScript. Unstuff the folder and open terminal, then 'cd' into the folder you just created. Type 'perl Makefile.PL', this should come back with "looks good". Then type 'make', after that type 'make test' (you can skip this) and lastly 'make install'.

With that done you can download and install the iTunes2irssi script. Put it in irssi's scripts folder (~/.irssi/scripts). To accomplish this you can either use the 'mv' command "mv ~/Desktop/iTunes2irssi.pl ~/.irssi/scripts" or use the 'Go to folder' command in the finder. If there is no scripts folder you can go ahead and make one. Alternatly you can make another folder inside scripts called "autorun". When you launch irssi any scripts inside the autorun folder are automatically loaded. otherwise you load a scrip with the "/script load itunes2irssi.pl" command.

How does it work?

Once you have the script loaded there are just a few short commands to learn.
  • /itunes
  • /itunes next
  • /itunes previous
  • /itunes play
  • /itunes pause
  • /itunes set <first block> $s <middle block> $a <tail block>
  • Displays the current song and artist in the active channel
  • Skips to the next track
  • Returns to the previous track
  • Tells iTunes to play the current track
  • Tells iTunes to pause the current track
  • Lets you set the text the strip uses with the /itunes command. $s is a placeholder for where the song will be ouptut and $a for the artist. You can also use the short version leaving off the $a and tail block.

Does it work with other IRC clients?

While I orginally wrote the script with irssi in mind my script has been graciously "ported" by Adam Block(Website) to work with the xchat client under Mac OS X. To install Download the script and put it in the ~/.xchat2 folder. To load the script in xChat use the command "/load ~/.xchat2/itunes2xchat.pl". Note that you can put the script anyware as long as the path given to xChat. The commands are the same as for irssi.
Copyright 2002-2003 Synergistic Consulting Contact
Valid HTML 4.01! Valid CSS!