<?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: Software filter: looking for a free program to rename lots of image files... </title>
      <link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files/</link>
      <description>Comments on Ask MetaFilter post Software filter: looking for a free program to rename lots of image files...</description>
	  	  <pubDate>Mon, 09 Jul 2007 20:38:25 -0800</pubDate>
      <lastBuildDate>Mon, 09 Jul 2007 20:38:25 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: Software filter: looking for a free program to rename lots of image files... </title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files</link>	
  	<description>Software filter: looking for a free program to rename lots of image files...  &lt;br /&gt;&lt;br /&gt; I&apos;m trying to get rid of stuff that i dont use, and i figured that two years worth of college notes would be a good place to start. &lt;br&gt;
Two big boxes down to under 500mb. (mostly greyscale 100-150dpi .png files)&lt;br&gt;
I used a brother MFC to scan them, but it doesn&apos;t do double sided scanning. &lt;br&gt;
What i&apos;ve done for double sided things is put them in a stack, scan the fronts, and then the backs. &lt;br&gt;
I put the fronts one folder, and the backs in another folder.&lt;br&gt;
My scanning software names each slide in numerical order (001, 002, 003, and so on).&lt;br&gt;
&lt;br&gt;
So if i had a two page, double sided document (4 sides), page one and three (the fronts) would be in one folder and named 001 and 002.&lt;br&gt;
Page two and four (the backs) would be in another folder and would be named 003 and 004.&lt;br&gt;
&lt;br&gt;
Page:    Name:&lt;br&gt;
1           001&lt;br&gt;
2           004&lt;br&gt;
3           002&lt;br&gt;
4           003&lt;br&gt;
&lt;br&gt;
(of course i&apos;m often dealing with a spiral notebook that contained 50-100 double-sided pages.)&lt;br&gt;
&lt;br&gt;
Is there some software that i could use to put these back in order? I&apos;ve searched google for freeware re-naming software and havent found anything all that useful.&lt;br&gt;
&lt;br&gt;
I know i&apos;ve had to write more complex sorting algorithms for the two java classes i took (before i changed my major...)&lt;br&gt;
and it seems that it would be as easy as taking the first set of names, reading them into an array with a blank space after each one, and then reading in the second set of names in reverse order into those blank spaces. Then actually doing all that renaming nonsense (which is were i&apos;d get into trouble).&lt;br&gt;
&lt;br&gt;
Seriously, someone has to have written this before.</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.66611</guid>
  	<pubDate>Mon, 09 Jul 2007 20:23:30 -0800</pubDate>
  	<dc:creator>itheearl</dc:creator>
	
	<category>software</category>
	
	<category>sort</category>
	
	<category>file</category>
	
	<category>rename</category>
	
</item>
<item>
  	<title>By: revmitcz</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#999212</link>	
  	<description>You didn&apos;t state whether or not you&apos;re on a Windows or OS X box. I know there&apos;s going to be some pretty easy to use Applescripts for such a thing, but I don&apos;t know what&apos;s on the Windows side (though, yes, there&apos;s almost assuredly something out there for it)</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-999212</guid>
  	<pubDate>Mon, 09 Jul 2007 20:38:25 -0800</pubDate>
  	<dc:creator>revmitcz</dc:creator>
</item>
<item>
  	<title>By: rkent</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#999220</link>	
  	<description>Honestly, writing it in perl would probably be faster than searching around for a program that does exactly the right thing.  I mean, any general-purpose program is going to make you hack up a regular expression (or something like one) anyway, and that&apos;s probably the hardest part.&lt;br&gt;
&lt;br&gt;
And yeah, there are perl installs for windows, e.g. &lt;a href=&quot;http://www.activestate.com/Products/activeperl/&quot;&gt;ActiveState&lt;/a&gt;.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-999220</guid>
  	<pubDate>Mon, 09 Jul 2007 20:47:55 -0800</pubDate>
  	<dc:creator>rkent</dc:creator>
</item>
<item>
  	<title>By: itheearl</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#999224</link>	
  	<description>Silly me.&lt;br&gt;
Windows xp professional (32bit) sp2.&lt;br&gt;
2ghz pentium m w/ 2gb ram&lt;br&gt;
&lt;br&gt;
Also have Ubuntu linux on my spare desktop and could do it on that. (ive been playing around with Ubuntu and mythtv on it, but no luck with the wintv go card...)&lt;br&gt;
Not much linux experience, especially when it comes to the command line, so graphical and easy to use would be nice... if not, good documentation (step-by-step) is a must.&lt;br&gt;
&lt;br&gt;
If it helps, i have absolutely no qualms about trashing a windows installation over this. I need to reload anyway...</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-999224</guid>
  	<pubDate>Mon, 09 Jul 2007 20:51:14 -0800</pubDate>
  	<dc:creator>itheearl</dc:creator>
</item>
<item>
  	<title>By: itheearl</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#999225</link>	
  	<description>Oh, and i have a tiny bit of C / C++ experience...&lt;br&gt;
absolutely no idea where to begin with pearl.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-999225</guid>
  	<pubDate>Mon, 09 Jul 2007 20:52:50 -0800</pubDate>
  	<dc:creator>itheearl</dc:creator>
</item>
<item>
  	<title>By: itheearl</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#999226</link>	
  	<description>case in point, i just spelled it wrong</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-999226</guid>
  	<pubDate>Mon, 09 Jul 2007 20:53:22 -0800</pubDate>
  	<dc:creator>itheearl</dc:creator>
</item>
<item>
  	<title>By: itheearl</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#999228</link>	
  	<description>I suppose i could modify some existing code...</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-999228</guid>
  	<pubDate>Mon, 09 Jul 2007 20:54:31 -0800</pubDate>
  	<dc:creator>itheearl</dc:creator>
</item>
<item>
  	<title>By: IndigoRain</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#999231</link>	
  	<description>I like &lt;a href=&quot;http://www.google.com/url?sa=t&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Frename.lupasfreeware.org%2F&amp;ei=BQSTRsP_JouKjAGiybG2Bg&amp;usg=AFQjCNGcdmDV_bxZjmLAf6Iy2Sy0u_Orpg&amp;sig2=d5255xDrOBMMGNF0TbXY9Q&quot;&gt;Lupas Rename&lt;/a&gt;. It&apos;s free.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-999231</guid>
  	<pubDate>Mon, 09 Jul 2007 20:59:39 -0800</pubDate>
  	<dc:creator>IndigoRain</dc:creator>
</item>
<item>
  	<title>By: rkent</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#999232</link>	
  	<description>Wait, you don&apos;t even need to do any sorting or reading of directories into arrays; there&apos;s a direct translation function for each set of pages.&lt;br&gt;
&lt;br&gt;
If there are n sheets with 2 sides each, the algorithm to rename the fronts is:&lt;br&gt;
&lt;blockquote&gt;new_name = (2 * old_name) - 1;&lt;/blockquote&gt;&lt;br&gt;
And to rename the backs it&apos;s:&lt;br&gt;
&lt;blockquote&gt;new_name = 2 * ((2 * n) - old_name + 1);&lt;/blockquote&gt;&lt;br&gt;
(assuming you actually did the backs in reverse order).   Come on, you can do that in perl, it&apos;ll take 10 minutes!</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-999232</guid>
  	<pubDate>Mon, 09 Jul 2007 21:00:13 -0800</pubDate>
  	<dc:creator>rkent</dc:creator>
</item>
<item>
  	<title>By: rkent</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#999237</link>	
  	<description>&lt;a href=&quot;http://accad.osu.edu/~mlewis/Class/Perl/perl.html#rf&quot;&gt;Here&apos;s&lt;/a&gt; a perl file renaming tutorial (!).  It&apos;d probably be easier to use the built in &lt;a href=&quot;http://perldoc.perl.org/functions/rename.html&quot;&gt;rename&lt;/a&gt; function instead of calling system(&amp;quot;mv $1 $2&amp;quot;), though.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-999237</guid>
  	<pubDate>Mon, 09 Jul 2007 21:09:10 -0800</pubDate>
  	<dc:creator>rkent</dc:creator>
</item>
<item>
  	<title>By: Zed_Lopez</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#999264</link>	
  	<description>Is it that you have a zillion pages in just 2 directories, &apos;front&apos; and &apos;back&apos; (or whatever), with the pattern above increasing into large numbers? And in the end you&apos;d like them united in one directory with filenames being numbers over the same range, just correctly corresponding to page number?&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;&lt;br&gt;
#!/usr/bin/perl -w&lt;br&gt;
use strict;&lt;br&gt;
use File::Copy;&lt;br&gt;
&lt;br&gt;
my $total_pages = 8; # or whatever multiple of 4 is appropriate&lt;br&gt;
my $dest_dir = &amp;quot;/tmp&amp;quot;; # or whatever&lt;br&gt;
&lt;br&gt;
for my $x (0..(($total_pages/4)-1)) {&lt;br&gt;
  my $y = $x * 4;&lt;br&gt;
  move sprintf(&amp;quot;front/%03d&amp;quot;,$y+1), sprintf(&amp;quot;%s/%03d&amp;quot;, $dest_dir, $y+1);&lt;br&gt;
  move sprintf(&amp;quot;front/%03d&amp;quot;,$y+2), sprintf(&amp;quot;%s/%03d&amp;quot;, $dest_dir, $y+3);&lt;br&gt;
  move sprintf(&amp;quot;back/%03d&amp;quot;,$y+3), sprintf(&amp;quot;%s/%03d&amp;quot;, $dest_dir, $y+4);&lt;br&gt;
  move sprintf(&amp;quot;back/%03d&amp;quot;,$y+4), sprintf(&amp;quot;%s/%03d&amp;quot;, $dest_dir, $y+2);&lt;br&gt;
}&lt;br&gt;
&lt;/tt&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-999264</guid>
  	<pubDate>Mon, 09 Jul 2007 21:53:02 -0800</pubDate>
  	<dc:creator>Zed_Lopez</dc:creator>
</item>
<item>
  	<title>By: Coolcan2</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#999292</link>	
  	<description>&lt;a href=&quot;http://my.vector.co.jp/servlet/System.FileDownload/download/http/0/131133/pack/win95/util/file/name/FlexRena730.zip&quot;&gt;Flexiable Renamer&lt;/a&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-999292</guid>
  	<pubDate>Mon, 09 Jul 2007 22:44:03 -0800</pubDate>
  	<dc:creator>Coolcan2</dc:creator>
</item>
<item>
  	<title>By: averyoldworld</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#1000047</link>	
  	<description>The single most useful batch file renamer I&apos;ve ever played with is the one built into &lt;a href=&quot;http://www.irfanview.com/&quot;&gt;irfanview&lt;/a&gt;.  It&apos;s free, small, works on windows, and has a pretty intuitive graphical interface for the (relatively simple) rename function.  It lets you do batch conversion/resizing of the images, too. &lt;br&gt;
&lt;br&gt;
If I&apos;m understanding you correctly (and based on my recollection), what&apos;d you&apos;d do is dump the first folder in, tell irfanview to sort it numerically, and then rename it to something like &amp;quot;### - _front&amp;quot; (where each # is a wildcard for a digit, and the underscore is for alphabetizing purposes) and let it output to a new folder.  Spot check for glaring errors in ordering.  If there are none, dump the second folder in, sort them in &lt;strong&gt;reverse&lt;/strong&gt; order, and rename them &amp;quot;### - back&amp;quot;.  Hit f5, and the files should be in the desired order (with fronts first, thanks to the underscore):&lt;br&gt;
001 - _front.jpg&lt;br&gt;
001 - back.jpg&lt;br&gt;
&lt;br&gt;
There&apos;s a tutorial on resizing &lt;a href=&quot;http://www.lancelotgroup.com/tutorials/HowToResize-IrFanView-Start.asp&quot;&gt;here&lt;/a&gt; that should give you a sense of what the hell I&apos;m talking about if you look at the screenshots (although, for some reason it doesn&apos;t show the sort button).  Here&apos;s one on &lt;a href=&quot;http://www.bleepingcomputer.com/forums/topic43854.html&quot;&gt;renaming&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
Even with trial and error, it shouldn&apos;t take you more than 5 minutes if you&apos;ve only got a front folder and a back folder and there are no surprises or anomalies in the naming scheme you described.  &lt;br&gt;
&lt;br&gt;
I&apos;ve also used &lt;a href=&quot;http://www3.telus.net/pfrank/&quot;&gt;PFrank&lt;/a&gt;, which has always been overkill for me.  I&apos;ve heard good things about &lt;a href=&quot;https://sourceforge.net/projects/renameit/&quot;&gt;Rename-It&lt;/a&gt;, as well.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-1000047</guid>
  	<pubDate>Tue, 10 Jul 2007 13:00:14 -0800</pubDate>
  	<dc:creator>averyoldworld</dc:creator>
</item>
<item>
  	<title>By: averyoldworld</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#1000052</link>	
  	<description>&lt;em&gt;Hit f5, and the files should be in the desired order...&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
That is, hit f5 to refresh the view when you&apos;re looking at the output folder (as opposed to in irfanview).  I&apos;m sure you knew what I meant, but still.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-1000052</guid>
  	<pubDate>Tue, 10 Jul 2007 13:04:17 -0800</pubDate>
  	<dc:creator>averyoldworld</dc:creator>
</item>
<item>
  	<title>By: Climber</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#1000112</link>	
  	<description>I use Bulk Rename Utility a lot for renaming photos.  It takes a few minutes to get used to, but it is powerful.&lt;br&gt;
&lt;a href=&quot;http://www.bulkrenameutility.co.uk/Main_Intro.php&quot;&gt;&lt;/a&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-1000112</guid>
  	<pubDate>Tue, 10 Jul 2007 13:46:11 -0800</pubDate>
  	<dc:creator>Climber</dc:creator>
</item>
<item>
  	<title>By: Climber</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#1000117</link>	
  	<description>There we go...&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://&quot;&gt;http://www.bulkrenameutility.co.uk/Main_Intro.php&lt;/a&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-1000117</guid>
  	<pubDate>Tue, 10 Jul 2007 13:47:39 -0800</pubDate>
  	<dc:creator>Climber</dc:creator>
</item>
<item>
  	<title>By: itheearl</title>
  	<link>http://ask.metafilter.com/66611/Software-filter-looking-for-a-free-program-to-rename-lots-of-image-files#1000636</link>	
  	<description>F**king amazing. &lt;br&gt;
Using infranview, i was able to increment the names by two, and the them into the 001, 002, 003, 004... order that i wanted. First try.&lt;br&gt;
(even bypassed that 001_front, 001back thing).&lt;br&gt;
Took only a matter of minutes to download, install, run, and sort my first notebook.&lt;br&gt;
Now i can &amp;quot;flip&amp;quot; through pages of my class notes using windows picture and fax viewer (or any image viewer for that matter).&lt;br&gt;
&lt;br&gt;
EXACTLY WHAT I WANTED!!!</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.66611-1000636</guid>
  	<pubDate>Tue, 10 Jul 2007 22:14:11 -0800</pubDate>
  	<dc:creator>itheearl</dc:creator>
</item>

    </channel>
</rss>
