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

jboy

macrumors newbie
Original poster
Aug 31, 2005
5
0
On itunes, I accidentily deleted the original files of my music located in the itunes music folder. The songs were still listed in my library, but they would not play the music. I wanted to keep these names so that I could eventually start getint the music back. Now, I do not know what the names are. I can't remember all of them. Can someone tell me if the names could be still stored somewhere or maybe even the actual songs?
Thanks
 
Two questions:

1. In the Advanced tab of iTune's Preferences, do you have "Keep iTunes Music folder organized" checked?

2. If you control-click one of the songs in your iTunes Library display, and select "Show Song File", does a Finder folder open? What is the path to that folder and what is in that folder?
 
yes

Doctor Q said:
Two questions:

1. In the Advanced tab of iTune's Preferences, do you have "Keep iTunes Music folder organized" checked?

2. If you control-click one of the songs in your iTunes Library display, and select "Show Song File", does a Finder folder open? What is the path to that folder and what is in that folder?

1. I just set it like that, but none of the songs appeared

2. i don't have the songs so I can't click on them
 
Here are three tricks you could try, all of them analyzing the file where iTunes stores its "pointer" information. They won't help you get the music, just the metadata.

1. Look in your Music folder. Inside it, open the iTunes folder. Inside it, control-click on file iTunes Music Library.xml, select Open With, and choose application TextEdit. If things go right, you will be looking at a big file full of structured keys and values representing your entire iTunes library. Looking through all that data might be hard, but in it you may find the artist names and track names of the songs you deleted.

Be sure to Quit from TextEdit without saving!

2. Since you didn't previously have Keep iTunes Music folder organized checked, I'm not sure what information this will get you, but if you make sure to cut and paste this string exactly as I have it below, it won't hurt to try. Here's what to do: Open the Terminal application in the Utilities folder of the Applications folder. It should give you a command prompt of some kind. Cut and paste the following big long string as a single line (even though it looks like multiple lines here in the forum display), paste it into the Terminal window, and then press return.

grep '>Location<' ~/Music/iTunes/iTunes\ Music\ Library.xml | cut -d: -f2 | cut -d\< -f1 | sed 's/%20/ /g' > ~/Music/iTunes/Lost\ Music.txt

Quit from Terminal.

Then, back in the Finder, double-click file Lost Music.txt in the iTunes folder of your Music folder. It should have a list of paths to your former music, which may include the artist and track names.

3. The same as #2, but with a different command to find song names and artist names, rather than the paths to the music files. Again, you paste this into a Terminal window and it is one long line. The results will be in file Lost Music2.txt

egrep 'Name|Artist' ~/Music/iTunes/iTunes\ Music\ Library.xml | cut -d\> -f4 | cut -d\< -f1 | sed 's/%20/ /' > ~/Music/iTunes/Lost\ Music2.txt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.