Scripting iTunes

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.

Useful Links:

Advertisements

Leave a comment

Filed under Apple, Useful

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s