Since i swichted my fun computing (music, videos + web ) from linux to OS X i needed some tools to make thinks easier with iTunes. I was used to amarok, which make music library handling pretty straight forward. I really hate the way iTunes handles music libs, so i switched the iTunes self organzing features off and wrote a little script using python and appscript to import music via commandline.
Import Folder ‘Album’ to Playlist ‘New’ and set Artist to ‘Slayer’ and Album to ‘South of Heaven’
python addToiTunes.py -d Album -p New -a 'Slayer' -A 'South of Heaven'
Import from Folder ‘music’ recursiv, where Playlist ,Artist and Album get name after the Folders.
music artist album 1 album 2
Will yield playlists name like “artist – album 1” and “artist album 2”
python addToiTunes.py -d music -rComments closed