<?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: Help me batch process files and folders with Applescript</title>
	<link>http://ask.metafilter.com/74071/Help-me-batch-process-files-and-folders-with-Applescript/</link>
	<description>Comments on Ask MetaFilter post Help me batch process files and folders with Applescript</description>
	<pubDate>Wed, 17 Oct 2007 20:03:07 -0800</pubDate>
	<lastBuildDate>Wed, 17 Oct 2007 20:03:07 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Help me batch process files and folders with Applescript</title>
		<link>http://ask.metafilter.com/74071/Help-me-batch-process-files-and-folders-with-Applescript</link>	
		<description>I have a folder of about two thousand .png files. For each file, I need to (1)create a new folder named the same as the currently selected file(minus the extension), and (2)move the file into its eponymous folder. How can I accomplish this using Applescript?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.74071</guid>
		<pubDate>Wed, 17 Oct 2007 20:01:04 -0800</pubDate>
		<dc:creator>40 Watt</dc:creator>
		
			<category>applescript</category>
		
			<category>macOSX</category>
		
			<category>computers</category>
		
	</item> <item>
		<title>By: 40 Watt</title>
		<link>http://ask.metafilter.com/74071/Help-me-batch-process-files-and-folders-with-Applescript#1101958</link>	
		<description>I&apos;m kinda new to Applescript, although I&apos;ve used it for some minor tasks. I&apos;m able to make a folder but I can&apos;t figure out the syntax to copy the name from the current file to the folder.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.74071-1101958</guid>
		<pubDate>Wed, 17 Oct 2007 20:03:07 -0800</pubDate>
		<dc:creator>40 Watt</dc:creator>
	</item><item>
		<title>By: flabdablet</title>
		<link>http://ask.metafilter.com/74071/Help-me-batch-process-files-and-folders-with-Applescript#1101962</link>	
		<description>Can&apos;t help you with the Applescript, but if you open a terminal you should be able to do this with bash:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
for f in *.png; do mkdir &quot;${f%.png}&quot;; mv &quot;$f&quot; &quot;${f%.png}&quot;; done&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.74071-1101962</guid>
		<pubDate>Wed, 17 Oct 2007 20:10:37 -0800</pubDate>
		<dc:creator>flabdablet</dc:creator>
	</item><item>
		<title>By: 40 Watt</title>
		<link>http://ask.metafilter.com/74071/Help-me-batch-process-files-and-folders-with-Applescript#1101981</link>	
		<description>See, this is why I freakin&apos; love AskMe. Here I was trying to make it all complicated-like. Thanks, flabdablet!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.74071-1101981</guid>
		<pubDate>Wed, 17 Oct 2007 20:33:33 -0800</pubDate>
		<dc:creator>40 Watt</dc:creator>
	</item><item>
		<title>By: limon</title>
		<link>http://ask.metafilter.com/74071/Help-me-batch-process-files-and-folders-with-Applescript#1101991</link>	
		<description>flabdablet, that was &lt;em&gt;hot&lt;/em&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.74071-1101991</guid>
		<pubDate>Wed, 17 Oct 2007 20:48:53 -0800</pubDate>
		<dc:creator>limon</dc:creator>
	</item><item>
		<title>By: 40 Watt</title>
		<link>http://ask.metafilter.com/74071/Help-me-batch-process-files-and-folders-with-Applescript#1101993</link>	
		<description>agreed. I&apos;m all tingly.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.74071-1101993</guid>
		<pubDate>Wed, 17 Oct 2007 20:52:54 -0800</pubDate>
		<dc:creator>40 Watt</dc:creator>
	</item><item>
		<title>By: chrisamiller</title>
		<link>http://ask.metafilter.com/74071/Help-me-batch-process-files-and-folders-with-Applescript#1101996</link>	
		<description>&lt;em&gt;flabdablet, that was hot.&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
Bash scripting for fun and (sexual?) profit</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.74071-1101996</guid>
		<pubDate>Wed, 17 Oct 2007 20:59:59 -0800</pubDate>
		<dc:creator>chrisamiller</dc:creator>
	</item><item>
		<title>By: flabdablet</title>
		<link>http://ask.metafilter.com/74071/Help-me-batch-process-files-and-folders-with-Applescript#1102059</link>	
		<description>Drunk with unexpected kudos, the lad immediately descends into showing off... here&apos;s the Windows XP cmd equivalent:&lt;br&gt;
&lt;code&gt;&lt;br&gt;
for %F in (*.png) do (&lt;br&gt;
mkdir &quot;%~nF&quot;&lt;br&gt;
move &quot;%~F&quot; &quot;%~nF&quot;&lt;br&gt;
)&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
Yes, it does need to be entered as multiple lines, and if you put this in a batch file, use %% instead of % throughout.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.74071-1102059</guid>
		<pubDate>Wed, 17 Oct 2007 23:20:51 -0800</pubDate>
		<dc:creator>flabdablet</dc:creator>
	</item>
	</channel>
</rss>
