<?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: How do I rename folders based on ID3 tags?</title>
	<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags/</link>
	<description>Comments on Ask MetaFilter post How do I rename folders based on ID3 tags?</description>
	<pubDate>Sat, 20 Aug 2005 13:35:00 -0800</pubDate>
	<lastBuildDate>Sat, 20 Aug 2005 13:35:00 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How do I rename folders based on ID3 tags?</title>
		<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags</link>	
		<description>How can I rename my music folders on my Mac based on ID3 tags? &lt;br /&gt;&lt;br /&gt; &lt;a href=&quot;http://www.dougscripts.com/itunes/&quot;&gt;Doug&apos;s Applescripts&lt;/a&gt; and &lt;a href=&quot;http://www.apple.com/itunes&quot;&gt;iTunes&lt;/a&gt; have done wonders in helping me organize my music, but I&apos;m looking for even more nit-pitcky precision. I already use Plaid Cow Solutions&apos; &lt;a href=&quot;http://www.dougscripts.com/itunes/scripts/ss.php?sp=renamefiles&quot;&gt;Rename Files&lt;/a&gt; to get my filenames to reflect my ID3 tags, but I wanted to know if there were a way to do something similar with the folders.&lt;br&gt;
&lt;br&gt;
For example, I would like the contents of my Built to Spill folder to look like this:&lt;br&gt;
&lt;br&gt;
[1994] There&apos;s Nothing Wrong With Love&lt;br&gt;
[1997] Perfect From Now On&lt;br&gt;
[1999] Keep it Like a Secret&lt;br&gt;
[2000] Live&lt;br&gt;
[2001] Ancient Melodies of the Future&lt;br&gt;
&lt;br&gt;
... and so on. Is there any solution short of renaming every single folder by hand?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2005:site.22880</guid>
		<pubDate>Sat, 20 Aug 2005 12:38:29 -0800</pubDate>
		<dc:creator>themadjuggler</dc:creator>
		
			<category>music</category>
		
			<category>mp3</category>
		
			<category>organization</category>
		
			<category>id3</category>
		
			<category>tags</category>
		
			<category>rename</category>
		
			<category>files</category>
		
			<category>itunes</category>
		
			<category>mac</category>
		
			<category>applescripts</category>
		
	</item> <item>
		<title>By: NewGear</title>
		<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags#365852</link>	
		<description>I use Chaotic Software&apos;s &lt;a href=&quot;http://www.chaoticsoftware.com/ProductPages/MP3Rage.html&quot;&gt;MP3Rage&lt;/a&gt; to do this, and love it. It helps with a lot of other mp3 file management tasks as well. Well worth checking out.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.22880-365852</guid>
		<pubDate>Sat, 20 Aug 2005 13:35:00 -0800</pubDate>
		<dc:creator>NewGear</dc:creator>
	</item><item>
		<title>By: bcwinters</title>
		<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags#365881</link>	
		<description>I second MP3 Rage. It isn&apos;t free, but it&apos;s very powerful. If you have any significant amount of mp3 file moving/renaming/organizing to do it will save you loads of time and effort.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.22880-365881</guid>
		<pubDate>Sat, 20 Aug 2005 14:01:54 -0800</pubDate>
		<dc:creator>bcwinters</dc:creator>
	</item><item>
		<title>By: wackybrit</title>
		<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags#365906</link>	
		<description>Why are you dealing with folders directly? If you&apos;re using iTunes, after all, that&apos;s your organized music collection there, you almost never need to dig into the actual filesystem.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.22880-365906</guid>
		<pubDate>Sat, 20 Aug 2005 15:37:19 -0800</pubDate>
		<dc:creator>wackybrit</dc:creator>
	</item><item>
		<title>By: themadjuggler</title>
		<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags#365909</link>	
		<description>&lt;b&gt;wackybrit&lt;/b&gt;&lt;br&gt;
Good question, and I&apos;m usually a big proponent of iTunes&apos; organization, but I am often in the file structure over a network in order to pick songs for my radio show, my organization for compilations and soundtracks is slightly different, and I&apos;m just a total neat freak.&lt;br&gt;
&lt;br&gt;
Thanks for the MP3 Rage suggestion, I&apos;ll check it out!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.22880-365909</guid>
		<pubDate>Sat, 20 Aug 2005 15:41:36 -0800</pubDate>
		<dc:creator>themadjuggler</dc:creator>
	</item><item>
		<title>By: patgas</title>
		<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags#365912</link>	
		<description>You could bang out a pretty quick Perl script to do it. I can provide more specific advice if you decide to go this route.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.22880-365912</guid>
		<pubDate>Sat, 20 Aug 2005 15:42:16 -0800</pubDate>
		<dc:creator>patgas</dc:creator>
	</item><item>
		<title>By: nightengine</title>
		<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags#365970</link>	
		<description>I realize this is a Mac-centric thread, but can anyone make the same suggestion for Windows?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.22880-365970</guid>
		<pubDate>Sat, 20 Aug 2005 17:51:05 -0800</pubDate>
		<dc:creator>nightengine</dc:creator>
	</item><item>
		<title>By: patgas</title>
		<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags#365985</link>	
		<description>For Windows:&lt;br&gt;
&lt;br&gt;
You could bang out a pretty quick Perl script to do it. I can provide more specific advice if you decide to go this route.&lt;br&gt;
&lt;br&gt;
&lt;small&gt;hee.&lt;/small&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.22880-365985</guid>
		<pubDate>Sat, 20 Aug 2005 18:52:39 -0800</pubDate>
		<dc:creator>patgas</dc:creator>
	</item><item>
		<title>By: rfordh</title>
		<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags#366066</link>	
		<description>ID3 and mp3 management has been my nagging motivation to learn Perl and/or Applescript, patgas.  Can you recommend something to check out as a starting point?&lt;br&gt;
&lt;br&gt;
I, too, am unhappy with the iTunes file structuring.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.22880-366066</guid>
		<pubDate>Sat, 20 Aug 2005 22:52:12 -0800</pubDate>
		<dc:creator>rfordh</dc:creator>
	</item><item>
		<title>By: samstarling</title>
		<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags#366096</link>	
		<description>I use &lt;a href=&quot;http://www.three-2-one.de/id3x/&quot;&gt;ID3X&lt;/a&gt; from 321apps, the program has a feature where you can batch rename MP3&apos;s according to their tags, and set folder structure. I personally use first level &quot;Artist&quot;, second level &quot;Album&quot; in my albums folder. Seems to work a treat, its quick and problem free.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.22880-366096</guid>
		<pubDate>Sun, 21 Aug 2005 03:00:38 -0800</pubDate>
		<dc:creator>samstarling</dc:creator>
	</item><item>
		<title>By: Merdryn</title>
		<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags#366808</link>	
		<description>&lt;a href=&quot;http://www.softpointer.com/tr.htm&quot;&gt;Tag&amp;amp;Rename&lt;/a&gt; (Windows)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.22880-366808</guid>
		<pubDate>Mon, 22 Aug 2005 11:00:58 -0800</pubDate>
		<dc:creator>Merdryn</dc:creator>
	</item><item>
		<title>By: scruss</title>
		<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags#373092</link>	
		<description>There are a couple of command-line id3 tools in the Fink repository that you could use. As I&apos;ve just bought an iBook, I&apos;m doing this very thing. I should be able to get a small Bash script here before this article closes ...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.22880-373092</guid>
		<pubDate>Wed, 31 Aug 2005 11:24:08 -0800</pubDate>
		<dc:creator>scruss</dc:creator>
	</item><item>
		<title>By: scruss</title>
		<link>http://ask.metafilter.com/22880/How-do-I-rename-folders-based-on-ID3-tags#375387</link>	
		<description>&lt;pre&gt;#!/bin/bash&lt;br&gt;
# itunes_sanity.sh - fix dir names created by iTunes&lt;br&gt;
# only works for mp3s, and not actually tested on a Mac&lt;br&gt;
# created by scruss on Sun Sep 4 22:05:00 EDT 2005&lt;br&gt;
&lt;br&gt;
find &quot;$@&quot; -type d -mindepth 1 | while read directory&lt;br&gt;
do&lt;br&gt;
  artistdir=$(dirname &quot;$directory&quot;)&lt;br&gt;
  firstfile=$( find &quot;$directory&quot; -type f -iname &apos;*.mp3&apos; | head -n1 )&lt;br&gt;
  year=$( id3info &quot;$firstfile&quot; | egrep &apos; TYE &apos; | sed &apos;s/=== TYE (Year): //; s/[^0-9]*//;&apos; )&lt;br&gt;
  album=$( id3info &quot;$firstfile&quot; | egrep &apos; TAL &apos; | sed &apos;s,=== TAL (Album/Movie/Show title): ,,;&apos; )&lt;br&gt;
  echo mv \&apos;$directory\&apos; \&apos;$artistdir/\[$year\] $album\&apos;&lt;br&gt;
done&lt;br&gt;
&lt;/pre&gt;&lt;br&gt;
So if you were in the terminal, in your music library (one up from the individual artist directories), and you did:&lt;br&gt;
&lt;pre&gt;itunes_sanity.sh Dan\ Jones Tripping\ Daisy&lt;/pre&gt;&lt;br&gt;
you&apos;d get:&lt;br&gt;
&lt;pre&gt;mv &apos;Dan Jones/Get Sounds Now&apos; &apos;Dan Jones/[2005] Get Sounds Now&apos;&lt;br&gt;
mv &apos;Dan Jones/One Man Submarine&apos; &apos;Dan Jones/[2003] One Man Submarine&apos;&lt;br&gt;
mv &apos;Tripping Daisy/Jesus Hits Like the Atom Bomb&apos; &apos;Tripping Daisy/[1998] Jesus Hits Like the Atom Bomb&apos;&lt;/pre&gt;&lt;br&gt;
If that looks okay, run the output through the shell:&lt;br&gt;
&lt;pre&gt;itunes_sanity.sh Dan\ Jones Tripping\ Daisy | sh&lt;/pre&gt;&lt;br&gt;
and all should be well.&lt;br&gt;
&lt;br&gt;
You&apos;ll need &lt;a href=&quot;http://id3lib.sourceforge.net/&quot;&gt;id3lib&lt;/a&gt;, which is probably most easily installed from &lt;a href=&quot;http://fink.sourceforge.net/&quot;&gt;Fink&lt;/a&gt;. Also, this only works for mp3 files; I can&apos;t grok the tag info for AAC files. And finally, this might go seriously screwy on weird characters in filenames.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2005:site.22880-375387</guid>
		<pubDate>Sun, 04 Sep 2005 20:12:08 -0800</pubDate>
		<dc:creator>scruss</dc:creator>
	</item>
	</channel>
</rss>
