<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Marius Gundersen &#187; xulrunner</title>
	<atom:link href="http://www.mariusgundersen.net/tag/xulrunner/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mariusgundersen.net</link>
	<description>MariusGundersen.net</description>
	<lastBuildDate>Fri, 06 Aug 2010 00:34:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Regex Renamer</title>
		<link>http://www.mariusgundersen.net/2009/08/17/regex-renamer/</link>
		<comments>http://www.mariusgundersen.net/2009/08/17/regex-renamer/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 03:06:06 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[Regex Renamer]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[XUL]]></category>
		<category><![CDATA[xulrunner]]></category>

		<guid isPermaLink="false">http://www.mariusgundersen.net/?p=47</guid>
		<description><![CDATA[This week I set out to make a simple batch application for renaming files. Specifically I wanted to rename folders containing episodes of a TV-show. These files tend to have very ugly names, containing the name of the show, the season and episode, the guy who uploaded it and the file type. I want my [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.mariusgundersen.net/wp-content/uploads/2009/08/regexrenamer.png"><img class="aligncenter size-medium wp-image-51" title="RegexRenamer" src="http://www.mariusgundersen.net/wp-content/uploads/2009/08/regexrenamer-300x223.png" alt="RegexRenamer" width="300" height="223" /></a></p>
<p>This week I set out to make a simple batch application for renaming files. Specifically I wanted to rename folders containing episodes of a TV-show. These files tend to have very ugly names, containing the name of the show, the season and episode, the guy who uploaded it and the file type. I want my collection to contain prettier names, and so I decided to make a batch renamer that could make the folder look more appealing.</p>
<p>I decided to make the application using XUL Runner. XUL Runner is made by Mozilla, and is essentially what Firefox and Thunderbird runs in. It lets you create an GUI using XUL, JavaScript and CSS and then run it as an application. Having made a few extensions to Firefox in my time, XUL was a familiar concept and it didn&#8217;t take long until I had a simple working version.</p>
<p>Regex Renamer lets you pick a pattern from a drop down list. It will then look for files that match the regular expression, and renames only those files. This means that if you have a folder where all the files have similar names, then you can rename all of them with a single click. The application also lets you create custom patterns, import and export the list of patterns from/to a file.</p>
<p>It&#8217;s not the most user friendly application in the world, and it could do with some work on editing the pattern list, and maybe have a cheatsheet on regex built inn. But for a simple application that took less than a week to code up, it works pretty well.</p>
<p>You can download the application for windows below. It should run on any system that XUL Runner runs on, which would include Windows, Linux and OS X, but you need to download XUL Runner for the last two platforms.</p>
<p><a href="http://www.mariusgundersen.net/wp-content/uploads/2009/08/RegexRenamer.rar">RegexRenamer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mariusgundersen.net/2009/08/17/regex-renamer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
