The Problem: iTunes Music Library isn’t as super fly as Winamp’s just yet. With Winamp you can store your music in any way you like, say: full albums in their own folder, singles in their own folders separated by genre. Winamp scans these folders (as many as you want) on startup looking for anything new. New music is automatically added to the Winamp library, not so with iTunes. You have to go in and re-import each folder. So I was looking for a way to make iTunes do this automagically.
The Solution: iTunesFolderSync.js
The script performs the following tasks:
- Scans all your library and remove any tracks that iTunes cannot find on your hard drive.
- Collect a list of all the folders you store music in.
- Import all those folders back into iTunes, catching all the new stuff in the process.
- Initiate a sync with your iPod if one is attached.
- Lets you know how many tracks were added and removed from the library.
Folder Sync is great for getting new stuff into iTunes that you have just downloaded, like podcasts. Its also great when you are organising your music, moving/renaming files and you want to sync up the library. You can have the script run after downloading podcasts using iPodder.
- You need the Windows Scripting Host and the .js extension set to be executed using \windows\system32\wscript.exe
- If you have music in formats that iTunes cannot read you will be asked to convert those tracks, even if they already exist in the library. The best thing to do here is to convert the tracks once and replace the originals with the conversions. This way you won’t get asked twice. You could also by lazy and just press ‘skip’.
- The iTunes SDK is here for you more intrepid hackers. You don’t need the SDK to run the script though.