<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Song files in iTunes pointing to the wrong location.</title>
	<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location/</link>
	<description>Comments on Ask MetaFilter post Song files in iTunes pointing to the wrong location.</description>
	<pubDate>Thu, 19 Jul 2007 07:57:36 -0800</pubDate>
	<lastBuildDate>Thu, 19 Jul 2007 07:57:36 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Song files in iTunes pointing to the wrong location.</title>
		<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location</link>	
		<description>How can I fix 6.000 tracks in iTunes, which have a wrong file path, without losing play counts and ratings? &lt;br /&gt;&lt;br /&gt; I just re-installed OSX on my Mac.  After I did that some of the files on my external drive iTunes library are pointing to the wrong location.  &lt;br&gt;
&lt;br&gt;
Both the music files and the iTunes library are located on an external drive called &quot;Musica&quot;.  However, around half of the files seem to have the wrong path set in iTunes and therefore iTunes can&apos;t find them.&lt;br&gt;
&lt;br&gt;
They are pointing at &quot;Musica/FOLDER/Radiohead/OK Computer&quot; - instead of the right one, which should be &quot;Musica/Radiohead/OK Computer&quot;&lt;br&gt;
&lt;br&gt;
Now, this is easy to fix by just changing things around in the XML file.  However, if I do that and re-import the XML, I will lose 4 years worth of play counts and ratings.  And that&apos;s something I simply am not willing to do.    The only one other way I know to do this is to point at each and every file and find the right location for each file.  However, since I probably have more than 6.000 files pointing at the wrong location (I have around 8.000 pointing at the right one) that would take me days to complete.&lt;br&gt;
&lt;br&gt;
So, are there any other ways to do this?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.67335</guid>
		<pubDate>Thu, 19 Jul 2007 07:29:13 -0800</pubDate>
		<dc:creator>einarorn</dc:creator>
		
			<category>itunes</category>
		
			<category>osx</category>
		
	</item> <item>
		<title>By: cmiller</title>
		<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location#1008787</link>	
		<description>Re-import what?  Can you not just edit iTunes&apos; XML (or whatever) in place?  The worst thing I can think of is that it has some checksum that includes the file name.&lt;br&gt;
&lt;br&gt;
Alternatively, from a terminal, &lt;br&gt;
 $ &lt;b&gt;sudo ln -s Musica/FOLDER Musica&lt;/b&gt;  (or the reverse)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67335-1008787</guid>
		<pubDate>Thu, 19 Jul 2007 07:57:36 -0800</pubDate>
		<dc:creator>cmiller</dc:creator>
	</item><item>
		<title>By: uaudio</title>
		<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location#1008788</link>	
		<description>you should be able to open the xml file in any text editor and find and replace the old text string with the new text. something like this:&lt;br&gt;
&lt;br&gt;
find: &quot;Musica/FOLDER/&quot;&lt;br&gt;
replace: &quot;Musica/&quot;&lt;br&gt;
&lt;br&gt;
you&apos;ll need to really think about the strings before you start to make sure a global search and replace will work. if you&apos;ve never done something like this before, i suggest making a copy of the original XML file before you start.&lt;br&gt;
&lt;br&gt;
disclaimer: i&apos;ve never done this on my mac, only on my old windows box.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67335-1008788</guid>
		<pubDate>Thu, 19 Jul 2007 07:58:34 -0800</pubDate>
		<dc:creator>uaudio</dc:creator>
	</item><item>
		<title>By: uaudio</title>
		<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location#1008798</link>	
		<description>just reread your post, its strange that you say &quot;about half&quot; have the wrong path. you may want to think about this when you enter your replacement terms, and how you confine the search.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67335-1008798</guid>
		<pubDate>Thu, 19 Jul 2007 08:03:34 -0800</pubDate>
		<dc:creator>uaudio</dc:creator>
	</item><item>
		<title>By: Tuwa</title>
		<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location#1008859</link>	
		<description>&lt;a href=&quot;http://ask.metafilter.com/18511/Help-me-help-iTunes-not-to-be-stupid#307664&quot;&gt;Here&lt;/a&gt;&apos;s the suggestion that worked for me (and a &lt;a href=&quot;http://ask.metafilter.com/18511/Help-me-help-iTunes-not-to-be-stupid#308948&quot;&gt;caveat&lt;/a&gt;).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67335-1008859</guid>
		<pubDate>Thu, 19 Jul 2007 08:42:56 -0800</pubDate>
		<dc:creator>Tuwa</dc:creator>
	</item><item>
		<title>By: Tuwa</title>
		<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location#1008863</link>	
		<description>Oops, I linked the wrong caveat.  &lt;a href=&quot;http://ask.metafilter.com/18511/Help-me-help-iTunes-not-to-be-stupid#309156&quot;&gt;This is the one&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67335-1008863</guid>
		<pubDate>Thu, 19 Jul 2007 08:44:05 -0800</pubDate>
		<dc:creator>Tuwa</dc:creator>
	</item><item>
		<title>By: WCityMike</title>
		<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location#1008864</link>	
		<description>Wow.  Very easy, and no one&apos;s posted it yet?&lt;br&gt;
&lt;br&gt;
Assuming I&apos;ve understood your problem correctly, you go to Advanced, make sure the library location is set where you want it to, and then choose &quot;Consolidate Library&quot; off the menu.  Bam.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67335-1008864</guid>
		<pubDate>Thu, 19 Jul 2007 08:44:48 -0800</pubDate>
		<dc:creator>WCityMike</dc:creator>
	</item><item>
		<title>By: aneel</title>
		<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location#1008868</link>	
		<description>You might try &lt;a href=&quot;http://dougscripts.com/itunes/scripts/scripts09.php?page=5#fixbrokentracks&quot;&gt;this script&lt;/a&gt;. Start with just a few tracks to make sure it works, of course.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67335-1008868</guid>
		<pubDate>Thu, 19 Jul 2007 08:45:33 -0800</pubDate>
		<dc:creator>aneel</dc:creator>
	</item><item>
		<title>By: Tuwa</title>
		<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location#1008888</link>	
		<description>&quot;Consolidate library&quot; will make a big mess of any mix CDs you have on mp3 and have dragged into the playlist from the hard drive rather than importing through iTunes (iTunes won&apos;t know that the tracks belong together and so will separate them into distinct folders by artist).  Just a word of warning; it may or may not affect you, and it might not matter if you use iTunes to burn CDs rather than an external program.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67335-1008888</guid>
		<pubDate>Thu, 19 Jul 2007 08:56:05 -0800</pubDate>
		<dc:creator>Tuwa</dc:creator>
	</item><item>
		<title>By: WCityMike</title>
		<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location#1008908</link>	
		<description>&lt;i&gt;&quot;Consolidate library&quot; will make a big mess of any mix CDs you have on mp3 and have dragged into the playlist from the hard drive rather than importing through iTunes (iTunes won&apos;t know that the tracks belong together and so will separate them into distinct folders by artist).&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
Not if they have &quot;Compilation: Yes&quot; selected.  (Select all tracks of mix CD, Get Info -- multiple-file ID3 editor pops up, set Compilation tag, etc.).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67335-1008908</guid>
		<pubDate>Thu, 19 Jul 2007 09:07:56 -0800</pubDate>
		<dc:creator>WCityMike</dc:creator>
	</item><item>
		<title>By: charmston</title>
		<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location#1008933</link>	
		<description>Try moving the files to the folder that the XML files says that it should be in (so the file locations are correct) and then consolidating the library.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67335-1008933</guid>
		<pubDate>Thu, 19 Jul 2007 09:22:39 -0800</pubDate>
		<dc:creator>charmston</dc:creator>
	</item><item>
		<title>By: einarorn</title>
		<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location#1009086</link>	
		<description>The consolidate thing that CityMike suggests doesn&apos;t work.  All the files are already in the root folder, it&apos;s just that iTunes thinks that some of them are in the Musica/Folder folder.&lt;br&gt;
&lt;br&gt;
I think that Charmston&apos;s suggestion should probably work, but that will take a lot of work, since I have to locate which files iTunes doesn&apos;t find.&lt;br&gt;
&lt;br&gt;
Aneel&apos;s script works, but that&apos;s also a lot of work, and the tracks lose their playlist places for some reason.&lt;br&gt;
&lt;br&gt;
Cmiller, if I just do what you suggest, then iTunes will just look at the library and not the XML file.  The only way to do this would be what I describe in the post (which is the same as Tuwa suggests), but that means that I lose play counts and ratings.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67335-1009086</guid>
		<pubDate>Thu, 19 Jul 2007 11:44:14 -0800</pubDate>
		<dc:creator>einarorn</dc:creator>
	</item><item>
		<title>By: gergtreble</title>
		<link>http://ask.metafilter.com/67335/Song-files-in-iTunes-pointing-to-the-wrong-location#1009200</link>	
		<description>You may find &lt;a href=&quot;http://hifiblog.com/past/2006/05/11/howto-move-your-itunes-music-while-preserving-library-data-when-you-dont-let-itunes-manage-your-music-library/&quot;&gt;this&lt;/a&gt; helpful.&lt;br&gt;
&lt;br&gt;
Im planing on doing it next month.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.67335-1009200</guid>
		<pubDate>Thu, 19 Jul 2007 13:11:10 -0800</pubDate>
		<dc:creator>gergtreble</dc:creator>
	</item>
	</channel>
</rss>
