<?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>MacDork :) &#187; osx</title>
	<atom:link href="http://www.macdork.com/tag/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.macdork.com/index.php</link>
	<description>Dorkus Malorkus</description>
	<lastBuildDate>Mon, 16 Jan 2012 02:00:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3-aortic-dissection</generator>
		<item>
		<title>Keyboard shortcuts for pop-up menus :O</title>
		<link>http://www.macdork.com/index.php/2009/02/10/keyboard-shortcuts-for-pop-up-menus-o/</link>
		<comments>http://www.macdork.com/index.php/2009/02/10/keyboard-shortcuts-for-pop-up-menus-o/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 13:40:54 +0000</pubDate>
		<dc:creator>MacDork</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.macdork.com/index.php/2009/02/10/keyboard-shortcuts-for-pop-up-menus-o/</guid>
		<description><![CDATA[Whoa.  I&#8217;ve created &#38; modified keyboard shortcuts for apps, but I didn&#8217;t realize it worked like this.  I know of a few places I can use this already :&#8217;) Thanks, Brent! inessential.com: MarsEdit tip: shortcuts for weblog menu: MarsEdit tip: shortcuts for weblog menu In MarsEdit there are two weblogs I post to most often, [...]]]></description>
			<content:encoded><![CDATA[<p>Whoa.  I&#8217;ve created &amp; modified keyboard shortcuts for apps, but I didn&#8217;t realize it worked like this.  I know of a few places I can use this already :&#8217;)</p>
<p>Thanks, Brent!</p>
<blockquote><p><a href="http://inessential.com/2009/02/01/marsedit_tip_shortcuts_for_weblog_menu">inessential.com: MarsEdit tip: shortcuts for weblog menu</a>:<br />
MarsEdit tip: shortcuts for weblog menu</p>
<p><a onclick="window.open('http://www.macdork.com/wp-content/uploads/2009/02/images-marseditweblogshortcuts.png','popup','width=269,height=114,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false" href="http://www.macdork.com/wp-content/uploads/2009/02/images-marseditweblogshortcuts.png" rel="lightbox[1003]"><img src="http://www.macdork.com/wp-content/uploads/2009/02/images-marseditweblogshortcuts-tm.jpg" border="1" alt=" Images Marseditweblogshortcuts" hspace="4" vspace="4" width="235" height="100" align="left" /></a></p>
<p>In MarsEdit there are two weblogs I post to most often, and I don’t like pulling down the menu item via my mouse to choose the weblog. So, instead, I assigned them keyboard shortcuts: ctrl-1 for ranchero and ctrl-2 for inessential.</p>
<p>Saves a little time, makes me happy.</p>
<p>How I did it<br />
I opened System Preferences, then clicked Keyboard &amp; Mouse. Then clicked the Keyboard Shortcuts tab.</p>
<p>I clicked the + button, then chose MarsEdit from the list of apps. I entered ranchero for Menu Title, and gave it ctrl-1 for the Keyboard Shortcut. Then repeated that for inessential, but with ctrl-2 as the shortcut.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.macdork.com/index.php/2009/02/10/keyboard-shortcuts-for-pop-up-menus-o/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean your download folder</title>
		<link>http://www.macdork.com/index.php/2008/07/09/clean-your-download-folder/</link>
		<comments>http://www.macdork.com/index.php/2008/07/09/clean-your-download-folder/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 13:11:30 +0000</pubDate>
		<dc:creator>Dork</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.macdork.com/index.php/?p=730</guid>
		<description><![CDATA[So my Downloads folder was getting a little messy, and I&#8217;m a file system fascist, so that just didn&#8217;t sit well with me.&#160; DOWN WITH DISORDER!&#160; I initially tried my hand at an Automator-generated Folder Action, but I found that as soon as Firefox starts saving a file, the AppleScript would launch as an application, [...]]]></description>
			<content:encoded><![CDATA[<p>So my Downloads folder was getting a little messy, and I&#8217;m a file system fascist, so that just didn&#8217;t sit well with me.&#160; DOWN WITH DISORDER!&#160; </p>
<p>I initially tried my hand at an Automator-generated Folder Action, but I found that as soon as Firefox starts saving a file, the AppleScript would launch as an application, taking the focus away from the browser, run for about 5s, then quit, but not return focus to the front-most browser window.  Since I only ever use one browser window, this was doubly annoying.</p>
<p>Having mucked about with OS X&#8217;s launchd, I thought, &#8220;Why don&#8217;t I just create a stupid shell script that does this whenever my Downloads directory is modified?&#8221;</p>
<p>I give you&#8230; SortDownloads.</p>
<p>Now for the caveats.</p>
<ul>
<li>I use <a href="http://www.getdropbox.com/">dropbox</a> to get the my <a href"http://www.rcrdlbl.com">rcrd lbl</a> downloads to my home machine.  Now when I download on the laptop, they&#8217;ll automatically be whisked away into the dropbox, where I can import it on the home machine that has my iTunes library on it.</li>
<li>I have a couple of folders in my Downloads folder.  I use it as a staging area for stuff that I don&#8217;t necessarily want to put into my permanent directory structure.
<ul>
<li>DiskImages</li>
<li>Media</li>
<li>Media/Images</li>
<li>Media/Movies</li>
<li>Media/PDFs</li>
<li>Zips</li>
</ul>
</li>
</ul>
<blockquote><p>
#! /bin/bash</p>
<p># Some silly variables<br />
ho=&#8217;/Users/dork&#8217;<br />
dl=$ho&#8217;/Downloads&#8217;<br />
db=$ho&#8217;/Dropbox&#8217; # http://www.getdropbox.com/ (srsly)</p>
<p># Now move all sorts of stuff into folders<br />
mv $dl/*.mp3 $db/Misc/<br />
mv $dl/*.iso $dl/*.dmg $dl/DiskImages/<br />
mv $dl/*.mpg $dl/*.mov $dl/*.avi $dl/*.flv $dl/*.mp4 $dl/Media/Movies/<br />
mv $dl/*.pdf $dl/*.doc $dl/Media/PDFs<br />
mv $dl/*.jpg $dl/*.jpeg $dl/*.gif $dl/*.png $dl/tiff $dl/Media/Images/<br />
mv $dl/*.zip $dl/*.gz $dl/Zips
</p></blockquote>
<p>So that will do the sorting, and you can run that from the command line whenever you want to, but the real beauty is having launchd run it for you whenever the Downloads directory changes.  There&#8217;s a great OS X app called <a href="http://lingon.sourceforge.net/">Lingon</a> that&#8217;ll make them for you, and here&#8217;s what the result looks like.</p>
<blockquote><p>
&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br />
&lt;!DOCTYPE plist PUBLIC &#8220;-//Apple//DTD PLIST 1.0//EN&#8221; &#8220;http://www.apple.com/DTDs/PropertyList-1.0.dtd&#8221;&gt;<br />
&lt;plist version=&#8221;1.0&#8243;&gt;<br />
&lt;dict&gt;<br />
	&lt;key&gt;Label&lt;/key&gt;<br />
	&lt;string&gt;com.macdork.SortDownloads&lt;/string&gt;<br />
	&lt;key&gt;ProgramArguments&lt;/key&gt;<br />
	&lt;array&gt;<br />
		&lt;string&gt;/Users/dork/Documents/Tech/Scripts/SortDownloads&lt;/string&gt;<br />
	&lt;/array&gt;<br />
	&lt;key&gt;QueueDirectories&lt;/key&gt;<br />
	&lt;array&gt;<br />
		&lt;string&gt;/Users/dork/Downloads&lt;/string&gt;<br />
	&lt;/array&gt;<br />
&lt;/dict&gt;<br />
&lt;/plist&gt;
</p></blockquote>
<p>This file ends up in your Library/LaunchAgents folder (/Users/dork/Library/LaunchAgents), and for simplicity, Lingon tells you to logout/login for the change to take effect, but you can open Terminal and run this command to do the same thing:</p>
<blockquote><p>
	launchctl load ~/Library/LaunchAgents
</p></blockquote>
<p>That&#8217;s it!  You&#8217;re good to go!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.macdork.com/index.php/2008/07/09/clean-your-download-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

