capndesign
08-24-2003, 03:07 AM
A few months ago I had moved my iTunes library to an external drive. I left the original files on my system's hard drive until now just in case I had any problems with the external drive (which I have in the past). When I deleted some of the files on my system drive to make space it resulted in most of those files going dead (exclamation point next to the file). I need a way to change the file location of these files without losing my play counts.
I know I could easily solve this by rebuilding my library with the XML file but then I lose my play counts. I also tried to go in and manually change the XML file with an updated location but the iTunes data file still wasn't updated and I didn't want to lose the play counts. I've tried a few of the ways of moving files that preserve the play counts but I can't seem to get them to work.
So, I think the best solution would be to create an applescript that will find all dead files and change a part of the file location so that it points to the new library. The file heirarchy is all the same so I should only have to change everything before the "iTunes:iTunes Library..." section of the file name. I could probably figure out how to do this on my own but I have never tried applescript before and I don't want to blow this. Now the questions.
Is there anything out there that can do this for me now? Are there any scripts that could be modified slightly to do this? I think that Doug Adams' Make Mine 31 Script (http://www.malcolmadams.com/itunes/scripts/scripts07.shtml#makemine31) would be easy to convert but, again, I don't want to screw things up. Any help would be greatly appreciated.
I know I could easily solve this by rebuilding my library with the XML file but then I lose my play counts. I also tried to go in and manually change the XML file with an updated location but the iTunes data file still wasn't updated and I didn't want to lose the play counts. I've tried a few of the ways of moving files that preserve the play counts but I can't seem to get them to work.
So, I think the best solution would be to create an applescript that will find all dead files and change a part of the file location so that it points to the new library. The file heirarchy is all the same so I should only have to change everything before the "iTunes:iTunes Library..." section of the file name. I could probably figure out how to do this on my own but I have never tried applescript before and I don't want to blow this. Now the questions.
Is there anything out there that can do this for me now? Are there any scripts that could be modified slightly to do this? I think that Doug Adams' Make Mine 31 Script (http://www.malcolmadams.com/itunes/scripts/scripts07.shtml#makemine31) would be easy to convert but, again, I don't want to screw things up. Any help would be greatly appreciated.