Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lowfi

macrumors newbie
Original poster
Sep 8, 2006
28
0
Geneva, Suisse
Hi,

I have moved some files to a netwrok share. I want to edit the iTunes Music Library.xml so i wont loose info such as playcount etc (and synces to appletv are reset). I know in the iTunes Music Library.xml there is a location string. So technically i could change for example:

<key>Location</key><string>file://localhost/Users/lowfi/Movies/1408.m4v</string>

into:

<key>Location</key><string>file://Volumes/External/Movies/1408.m4v</string>

Although this doesnt seem to work because every time i start itunes again it cant find the files :( When i close itunes again and open the xml again all previous changes ive done before are undone (yes i have saved changes ;) )

Is there perhaps another way or am i missing something?


Thanks :)
 

plinden

macrumors 601
Apr 8, 2004
4,029
142
Did you quit iTunes before making the changes?

By the way, if you're using a Mac, you should look at Doug's scripts for iTunes. There may be something there you could use so you don't have to edit the library file directly.
 

lowfi

macrumors newbie
Original poster
Sep 8, 2006
28
0
Geneva, Suisse
I moved around 300 files so doing it one by one is of course a possiblity but i thought doing a simple find and replace in textmate would be a lot easier.

Imagine if i moved around 20gigs worth of music :p One by one... :Z

Ill try the script :)

thanks
 

lowfi

macrumors newbie
Original poster
Sep 8, 2006
28
0
Geneva, Suisse
Ok! Found it :D

So appereantly itunes first looks in the iTunes music library.itl file. If there is data in there it skips the xml file. So i removed everything from the itl file did a find and replace in the xml find and restarted iTunes. After that iTunes found all my newly editted files on a network storage :)

The script didnt work because in tiger, spotlight isnt able to search network shares. (the script uses spotlight to locate missing files)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.