Love it or hate it, iTunes is a massively popular piece of software, not because it’s fast, good looking or ultra-usuable, but because you need it if you’re one of the millions and millions of people that own an iPhone, iPad or iPod.
However, I was recently very pleasantly surprised when I found that iTunes has a COM interface that allows you to very easily script actions – such as bulk renaming your tracks, or bulk-editing track metadata
Although I’m a C# developer, one of the most convenient ways to access this functionality was actually JScript:
var iTunesApp = WScript.CreateObject("iTunes.Application");
I wrote a script to take some videos that were showing as “Movies” section in iTunes, and changed the metadata (“Media Kind”, “Episode Number” and “Season Number”) and made them show up in the “TV Shows” section of iTunes.
- Apple iTunes COM SDK : http://connect.apple.com – “Developer Tools” – “iTunes COM for Windows SDK”