Scan Mode for iTunes Script
So I was hacking on some Android stuff this weekend and I was immediately distracted by constantly having to flip the song on iTunes party mix DJ bullshit marketing name for shuffle mode. What I wanted was the equivalent of seek mode on car stereos. Where you basically press a button and every 10 seconds, it auto-flips to the next song until you tell it to stop.
OK, this can’t be that difficult right? Right. http://github.com/zackola/itunes-scan/tree/master
A few things. This is basically just a inline script written in Ruby. It uses RubyOSA as an event bridge to interact with iTunes. Although RubyOSA is pretty early, it worked great. You will also need Growl as this makes use of growlnotify to tell you what the track is on change. Also, this is best launched from Quicksilver, but before you do that, you need to turn on the “Run tasks in background option” under “Extras”.
To control the starting/stopping of scanning I’m just saving a text file in ~/.trackscanner with the PID of the process that started the scanning. Sorry for littering your home directory and if anyone has a better idea of where to store this info I’d love to know. Sorry only tested on OS X at the moment.
No Comments Yet