Ruben Laguna's blog

Apr 15, 2006 - 1 minute read - itunes

Javascript + iTunes

The other day I found out this post. Thanks to the examples javascript (or more accurately jscript) provided in the post I learned to write my own javascripts to manage muy iTunes library. Here’s the result a script to find out files under the “iTunes Music” folder that are not present in the iTunes library. It helpful we you mess up the library (I used the “Consolidate library” feauture and ended up with tons of duplicated files in the hard drive that didn’t show up the iTunes interface).

Here’s the script

It output it’s results to a “filesnotlinked.txt”. You can either delete those files if they are duplicates or add them to the library.