One of these things is not like the other...
The unholy trinity I speak of in the title is a combination I stumbled upon tonight with much glee on my part. Apple iTunes COM SDK + JavaScript + Windows Scripting Host. I know, you're probably wondering what the hell kind of medicine I am on, playing with Windows scripting. I had never touched it before tonight either. JavaScript and I have a longterm love/hate relationship as well. I love to swear at it endlessly for its annoyances and lack of ease of debugging, while hating how often it ends up getting the job done for me.
That all said, this combination has just allowed me to do some kick-ass things with iTunes. I had the SDK downloaded for some time, and I wrote some sample C++ apps when I first got it. However, after seeing the Apple JavaScript examples I decided to experiment with them a bit. I'm thoroughly impressed now, similar to Unix shell scripts (although orders of magnitude less powerful), I find that I can just get a task done very quickly, as opposed to writing a full application. Quick and dirty is the key here.
I currently have some scripts to perform some actions I had been meaning to do. Remove any dead tracks from my library, and cleanup bogus comments on some of my tracks. If anyone is interested, I can give them the scripts.
Now, for the challenge. Come up with some task/feature that you would like to do with your iTunes library that you can't quite seem to make happen with playlists. I'll see what I can do about getting it done in a script.
6 years ago