I want to migrate a nas based music library with more than 25,000 files. I read article http://support.apple.com/kb/HT4527 and transfered the files per external drive without prior consolidating. The files should reside at the nas of course. I want to retain the directory structure of my nas because other devices (as network players) should access the audio files too. I didn't use drive letters to access the audio files with my Windows-PC, I used the unc-filename convention.
Therefore the location of a audio file is for example //nas/audio/MP3/Musik/songs/r/Ram Jam - Black Betty.mp3
Copying iTunes Folder
Having copied the files into the Music/iTunes folder on my mac almost everthing is fine but the music files are marked as missing ("!"). The location then is shown as file://localhost//Nas/audio/MP3/Musik/songs/r/Ram Jam - Black Betty.mp3. When I point iTunes to the location of the file it changes to /Volumes/audio/MP3/Musik/songs/r/Ram Jam - Black Betty.mp3
Editing iTunes Music Library.xml
I edited the iTunes Music Library.xml using TextEdit. Interestingly the location there was before
and is now
I closed iTunes and replaced all occurences "file://localhost//Nas/" to "file://localhost/Volumes/" saved the file. This method worked under Windows when I moved the audio files to another nas-box. Apparantly iTunes uses the iTunes Music Library.itl file which is binary, so this did not work.
Importing iTunes Music Library.xml into empty iTunes
I found another link http://support.apple.com/kb/HT1451 and i tried to import the edited XML-File into an empty iTunes. but that did not help.
Scripting iTunes to modify Location
I started to code an apple skript to set the Location, but I was not able to read the Location attribute of the track item. All I got was "Missing"-Value.
So I'm stuck at the moment. The austrian-apple-support guy was friendly but his help was to suggest to address the problem to the support community.
I think nas-boxes with huge audio librarys are quite common these days so I hope someone has solved that problem.
Many thanks in advance.