<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Martin Ström</title>
	
	<link>http://my-domain.se</link>
	<description />
	<lastBuildDate>Wed, 30 Jun 2010 16:47:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/haraldmartin" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="haraldmartin" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Push notifications for Things Touch (iPhone/iOS) using Prowl</title>
		<link>http://my-domain.se/push-notifications-for-things-touch-iphone-ios/</link>
		<comments>http://my-domain.se/push-notifications-for-things-touch-iphone-ios/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 09:25:36 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[prowl]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[things]]></category>
		<category><![CDATA[things-rb]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=387</guid>
		<description><![CDATA[While waiting for Things Touch to officially support push notifications I hacked my own solution based on Prowl and my own Ruby library for Things, things-rb. Installation I&#8217;ve setup Dropbox to share my Things database betweeen my laptop and a computer at home which is always online. Buy and install Prowl on your iOS device. [...]]]></description>
			<content:encoded><![CDATA[<p>While waiting for <a href="http://culturedcode.com/things/iphone/">Things Touch</a> to officially support push notifications I hacked my own solution based on <a href="http://prowl.weks.net/">Prowl</a> and my own Ruby library for Things, <a href="http://github.com/haraldmartin/things-rb">things-rb</a>.</p>

<h2>Installation</h2>

<ol>
<li><p>I&#8217;ve setup <a href="https://www.dropbox.com/referrals/NTI3MjE1OQ">Dropbox</a> to share my Things database betweeen my laptop and a computer at home which is always online.</p></li>
<li><p>Buy and install <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=320876271">Prowl</a> on your iOS device.</p></li>
<li><p>On the home computer/server, install things-rb:</p>

<p><code>$ (sudo) gem update --system # if you're on an older RubyGems version</code><br />
<code>$ (sudo) gem install things-rb</code></p></li>
<li><p>..and the prowl gem to talk to the Prowl API</p>

<p><code>$ (sudo) gem install prowl</code></p></li>
<li><p>Save this file somewhere (like <code>~/bin/prowl_things.rb</code>)</p>

<script src="http://gist.github.com/458424.js"></script></li>
<li><p>Setup a cronjob to run the script as often as you&#8217;d like. Mine runs every weekday at 8:45 am.</p>

<p><code>45     8      *       *      1-5     /usr/bin/ruby /Users/me/bin/prowl_things.rb</code></p></li>
</ol>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/haraldmartin?a=auhtoTMXSxo:t9SazQIh5Pg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=auhtoTMXSxo:t9SazQIh5Pg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=auhtoTMXSxo:t9SazQIh5Pg:2mJPEYqXBVI"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=2mJPEYqXBVI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=auhtoTMXSxo:t9SazQIh5Pg:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=dnMXMwOfBR0" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/push-notifications-for-things-touch-iphone-ios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nicer public Dropbox URLs</title>
		<link>http://my-domain.se/nicer-public-dropbox-urls/</link>
		<comments>http://my-domain.se/nicer-public-dropbox-urls/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 09:20:25 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[dropbox]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=374</guid>
		<description><![CDATA[I use Dropbox but wanted nicer URLs for the links I sometimes send to the files in my Public folder. Each user has a folder on dropbox.com which is publicly shared, like this http://dl.dropbox.com/u/12345/ so I just set up a new sub domain (mine is dropbox.my-domain.se) and let Apache redirect all requests to that domain [...]]]></description>
			<content:encoded><![CDATA[<p>I use <a href="https://www.dropbox.com/referrals/NTI3MjE1OQ">Dropbox</a> but wanted nicer URLs for the links I sometimes send to the files in my Public folder. Each user has a folder on dropbox.com which is publicly shared, like this <code>http://dl.dropbox.com/u/12345/</code> so I just set up a new sub domain (mine is <a href="http://dropbox.my-domain.se">dropbox.my-domain.se</a>) and let Apache redirect all requests to that domain to my Dropbox folder instead:</p>

<pre><code>&lt;VirtualHost *:80&gt;
  ServerName  dropbox.my-domain.se     
  RewriteEngine on
  RewriteRule ^(.*)$ http://dl.dropbox.com/u/27215$1 [R,L]
&lt;/VirtualHost&gt;
</code></pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/haraldmartin?a=6cVjkuIMm8w:YjbOvdcsecI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=6cVjkuIMm8w:YjbOvdcsecI:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=6cVjkuIMm8w:YjbOvdcsecI:2mJPEYqXBVI"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=2mJPEYqXBVI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=6cVjkuIMm8w:YjbOvdcsecI:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=dnMXMwOfBR0" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/nicer-public-dropbox-urls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download torrent files from Twitter DMs</title>
		<link>http://my-domain.se/download-torrent-files-from-twitter-dms/</link>
		<comments>http://my-domain.se/download-torrent-files-from-twitter-dms/#comments</comments>
		<pubDate>Mon, 24 May 2010 06:10:30 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[torrent]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=356</guid>
		<description><![CDATA[Here&#8217;s a simple ruby script to download torrent files in Safari sent to you/an account as URLs in Twitter direct messages. It could be used on your home server to download torrent files you send to it from something like your iPad. I&#8217;ve set it up to run every fifth minute (using cron) to check [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a simple ruby script to download torrent files in Safari sent to you/an account as URLs in Twitter direct messages. </p>

<p>It could be used on your home server to download torrent files you send to it from something like your iPad.</p>

<script src="http://gist.github.com/396688.js"></script>

<p>I&#8217;ve set it up to run every fifth minute (using cron) to check for new files, but can of course be adjusted to something that works for you.</p>

<p>Also, make sure to point Safari&#8217;s download folder (in Safari&#8217;s preferences) to the same folder as you have Transmission automatically watch for <code>.torrent</code> files so the download actually starts.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/haraldmartin?a=13nbWdF1auY:8X_jQKqyGTc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=13nbWdF1auY:8X_jQKqyGTc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=13nbWdF1auY:8X_jQKqyGTc:2mJPEYqXBVI"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=2mJPEYqXBVI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=13nbWdF1auY:8X_jQKqyGTc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=dnMXMwOfBR0" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/download-torrent-files-from-twitter-dms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paperclip processor to turn images into grayscale</title>
		<link>http://my-domain.se/paperclip-grayscale-processor/</link>
		<comments>http://my-domain.se/paperclip-grayscale-processor/#comments</comments>
		<pubDate>Mon, 17 May 2010 06:10:37 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[paperclip]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=360</guid>
		<description><![CDATA[We wanted to automatically create a grayscale version of the uploaded images for a current project. Here&#8217;s the Paperclip processor we&#8217;re using:]]></description>
			<content:encoded><![CDATA[<p>We wanted to automatically create a grayscale version of the uploaded images for a current project. Here&#8217;s the <a href="http://github.com/thoughtbot/paperclip">Paperclip</a> processor we&#8217;re using:</p>

<script src="http://gist.github.com/397144.js"></script>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/haraldmartin?a=hFO3XDH8G-A:vlf1C_dEswc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=hFO3XDH8G-A:vlf1C_dEswc:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=hFO3XDH8G-A:vlf1C_dEswc:2mJPEYqXBVI"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=2mJPEYqXBVI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=hFO3XDH8G-A:vlf1C_dEswc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=dnMXMwOfBR0" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/paperclip-grayscale-processor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A better Mail-to-Things-ToDo script</title>
		<link>http://my-domain.se/a-better-mail-to-things-todo-script/</link>
		<comments>http://my-domain.se/a-better-mail-to-things-todo-script/#comments</comments>
		<pubDate>Mon, 10 May 2010 11:08:09 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[automator]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[things]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=332</guid>
		<description><![CDATA[Until now I&#8217;ve been creating todos in Things from Mail messages in OS X using the quick entry built into Things and the &#8220;autofill&#8221; feature. But I didn&#8217;t like that it, by default, created the todos in Things&#8217; Inbox and that I had to manually select text in the mail message to get it as [...]]]></description>
			<content:encoded><![CDATA[<p>Until now I&#8217;ve been creating todos in Things from Mail messages in OS X using the <a href="http://culturedcode.com/things/wiki/index.php/Quick_Entry_and_Autofill">quick entry built into Things and the &#8220;autofill&#8221; feature</a>. But I didn&#8217;t like that it, by default, created the todos in Things&#8217; Inbox and that I had to manually select text in the mail message to get it as notes (which is important when using Things on your iPhone/iPad when the link back to the mail message doesn&#8217;t work).</p>

<p>Instead here&#8217;s an AppleScript which will take the selected message(s) and automatically create one task for each email in the &#8220;Next&#8221; focus in Things. It will then archive the mail messages and show a Growl notification. The todos in Things will get tagged with the &#8220;Reply&#8221; tag (which in my setup is a subtag of &#8220;Email&#8221;). </p>

<p><img src="http://my-domain.se/wordpress/wp-content/uploads/2010/05/Screen-shot-2010-05-10-at-13.01.25.png" alt="" title="Growl" width="292" height="118" class="alignright size-full wp-image-338"></p>

<p><img src="http://my-domain.se/wordpress/wp-content/uploads/2010/05/Screen-shot-2010-05-10-at-12.53.501.png" alt="" title="Things" width="584" height="152" class="alignnone size-full wp-image-337" /></p>

<p>The script is a modified version of <a href="http://the.taoofmac.com/space/dev/AppleScript/Mail%20Archive">the one found here</a>. I also put the script in an Automator action like described in the article so you can assign a shortcut key to it without including third party software. </p>

<script src="http://gist.github.com/395910.js"></script>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/haraldmartin?a=PhGrUozt9HM:KiZVFBlfcqk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=PhGrUozt9HM:KiZVFBlfcqk:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=PhGrUozt9HM:KiZVFBlfcqk:2mJPEYqXBVI"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=2mJPEYqXBVI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=PhGrUozt9HM:KiZVFBlfcqk:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=dnMXMwOfBR0" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/a-better-mail-to-things-todo-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QuickTip: Change Finder’s default folder</title>
		<link>http://my-domain.se/quicktip-change-finders-default-folder/</link>
		<comments>http://my-domain.se/quicktip-change-finders-default-folder/#comments</comments>
		<pubDate>Thu, 06 May 2010 09:32:40 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=328</guid>
		<description><![CDATA[.bbpBox{background:url(http://s.twimg.com/a/1272044617/images/themes/theme1/bg.png) #cccccc;padding:20px;}p.bbpTweet{background:#fff;padding:10px 12px 10px 12px;margin:0;min-height:48px;color:#000;font-size:18px !important;line-height:22px;-moz-border-radius:5px;-webkit-border-radius:5px}p.bbpTweet span.metadata{display:block;width:100%;clear:both;margin-top:8px;padding-top:12px;height:40px;border-top:1px solid #fff;border-top:1px solid #e6e6e6}p.bbpTweet span.metadata span.author{line-height:19px}p.bbpTweet span.metadata span.author img{float:left;margin:0 7px 0 0px;width:38px;height:38px}p.bbpTweet a:hover{text-decoration:underline}p.bbpTweet span.timestamp{font-size:12px;display:block} #protip: Change Finder&#8217;s default folder to one you often use (like ~/Projects or whatever) http://bit.ly/deofQtless than a minute ago via TweetieMartin Strömharaldmartin]]></description>
			<content:encoded><![CDATA[<p><img src="http://asdsds.my-domain.se/scrup/b1/5se60ld14ws0w.png" alt=""></p>

<!-- http://twitter.com/haraldmartin/status/13453367238 --> <style type='text/css'>.bbpBox{background:url(http://s.twimg.com/a/1272044617/images/themes/theme1/bg.png) #cccccc;padding:20px;}p.bbpTweet{background:#fff;padding:10px 12px 10px 12px;margin:0;min-height:48px;color:#000;font-size:18px !important;line-height:22px;-moz-border-radius:5px;-webkit-border-radius:5px}p.bbpTweet span.metadata{display:block;width:100%;clear:both;margin-top:8px;padding-top:12px;height:40px;border-top:1px solid #fff;border-top:1px solid #e6e6e6}p.bbpTweet span.metadata span.author{line-height:19px}p.bbpTweet span.metadata span.author img{float:left;margin:0 7px 0 0px;width:38px;height:38px}p.bbpTweet a:hover{text-decoration:underline}p.bbpTweet span.timestamp{font-size:12px;display:block}</style> <div class='bbpBox'><p class='bbpTweet'><a href="http://twitter.com/search?q=%23protip" title="#protip" class="tweet-url hashtag" rel="nofollow">#protip</a>: Change Finder&#8217;s default folder to one you often use (like ~/Projects or whatever) <a href="http://bit.ly/deofQt" rel="nofollow">http://bit.ly/deofQt</a><span class='timestamp'><a title='Wed May 05 23:17:51 +0000 2010' href='http://twitter.com/haraldmartin/status/13453367238'>less than a minute ago</a> via <a href="http://www.atebits.com/" rel="nofollow">Tweetie</a></span><span class='metadata'><span class='author'><a href='http://twitter.com/haraldmartin'><img src='http://a3.twimg.com/profile_images/230435527/Picture_3_normal.png' /></a><strong><a href='http://twitter.com/haraldmartin'>Martin Ström</a></strong><br/>haraldmartin</span></span></p></div> <!-- end of tweet -->
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/haraldmartin?a=VKZW87Oj820:DKsQKd6UaUw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=VKZW87Oj820:DKsQKd6UaUw:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=VKZW87Oj820:DKsQKd6UaUw:2mJPEYqXBVI"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=2mJPEYqXBVI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=VKZW87Oj820:DKsQKd6UaUw:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=dnMXMwOfBR0" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/quicktip-change-finders-default-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Selected Folder or File in TextMate from Finder</title>
		<link>http://my-domain.se/open-selected-folder-or-file-in-textmate-from-finder/</link>
		<comments>http://my-domain.se/open-selected-folder-or-file-in-textmate-from-finder/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 21:56:35 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[services]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=318</guid>
		<description><![CDATA[Before upgrading to Snow Leopard I had a QuickSilver trigger (⌃⌥⌘M) to open the currently selected file(s) or folder(s) in TextMate. It was setup as a QuickSilver trigger using the Proxy Object &#8220;Finder Selection&#8221;. Too bad it doesn&#8217;t work for me in the later QuickSilver versions and/or Snow Leopard. I missed this trigger so I [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/wordpress/wp-content/uploads/2010/04/Screen-shot-2010-04-02-at-20.47.54.png" alt="QuickSilver" /></p>

<p>Before upgrading to Snow Leopard I had a QuickSilver trigger (<code>⌃⌥⌘M</code>) to open the currently selected file(s) or folder(s) in TextMate. It was setup as a QuickSilver trigger using the Proxy Object &#8220;Finder Selection&#8221;. Too bad it doesn&#8217;t work for me in the later QuickSilver versions and/or Snow Leopard. </p>

<p>I missed this trigger so I made a 10.6 Service to accomplish the same task:</p>

<p><img src="/wordpress/wp-content/uploads/2010/04/Screen-shot-2010-03-31-at-22.47.58.png" alt="Automator" /></p>

<ol>
<li>Run Automator and select &#8220;Service&#8221; from the template chooser.</li>
<li>Select &#8220;Files and Folders&#8221; from &#8220;Finder&#8221;</li>
<li>Find the &#8220;Open Finder Items&#8221; action from the left pane and select TextMate as the application. </li>
<li>Save the service in <code>~/Library/Services</code>. I called mine &#8220;Open With TextMate&#8221;</li>
</ol>

<p><img src="/wordpress/wp-content/uploads/2010/04/Screen-shot-2010-03-31-at-22.47.50.png" alt="Keyboard Preferences" /></p>

<p>To run the service from the keyboard, run &#8220;System Preferences&#8221; and select &#8220;Keyboard&#8221;, then select &#8220;Services&#8221; in the left menu and locate the &#8220;Open With TextMate&#8221; service on the right side. Add a keyboard shortcut (I choose the same as I&#8217;m used to, <code>⌃⌥⌘M</code>).</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/haraldmartin?a=D8C9IePRkZI:hlz8pLYzGs8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=D8C9IePRkZI:hlz8pLYzGs8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=D8C9IePRkZI:hlz8pLYzGs8:2mJPEYqXBVI"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=2mJPEYqXBVI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=D8C9IePRkZI:hlz8pLYzGs8:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=dnMXMwOfBR0" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/open-selected-folder-or-file-in-textmate-from-finder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CopyPasteCharacter iPhone Application</title>
		<link>http://my-domain.se/copypastecharacter-iphone-application/</link>
		<comments>http://my-domain.se/copypastecharacter-iphone-application/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 23:06:58 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[objc]]></category>
		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=293</guid>
		<description><![CDATA[A couple of weeks ago our official iPhone application for CopyPasteCharacter.com finally became available on the App Store. The project itself isn&#8217;t too complicated but was my first &#8220;real&#8221; Cocoa and iPhone app so it took some time to get everything together and learn how to do things. The application basically lets you find and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://my-domain.se/wordpress/wp-content/uploads/2010/03/Screen-shot-2010-03-06-at-00.03.31.png" alt="" title="Screen shot 2010-03-06 at 00.03.31" width="414" height="770" class="alignnone size-full wp-image-303" /></p>

<p>A couple of weeks ago our official iPhone application for <a href="http://copypastecharacter.com">CopyPasteCharacter.com</a> finally became available on the App Store. The project itself isn&#8217;t too complicated but was my first &#8220;real&#8221; Cocoa and iPhone app so it took some time to get everything together and learn how to do things.</p>

<p>The application basically lets you find and easily copy symbols, characters and letters which otherwise can be hard to find on a regular keyboard. On the iPhone, many of these characters aren&#8217;t available at all by just using the system keyboards. Just touch one or many symbols to automatically copy them into your clipboard and paste them into any application (SMS, Facebook, Twitter, Mail etc).</p>

<p>I was happy to see that the app was approved by Apple only two working days after I submitted it. I had, however, waited about 2 months to hear from Apple on how we should solve a problem with my iTunes account. </p>

<p>Hint: You can&#8217;t use the same Apple account to upload/sell music in the iTunes Store as upload upload applications to AppStore. Create a new account before buying the iPhone developer program to stay out of trouble.</p>

<p>Please check out the <a href="http://copypastecharacter.com/iphone">product page</a> with a video walk through or go <a href="http://itunes.com/apps/copypastecharacter">directly to the AppStore</a>. </p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/haraldmartin?a=EzjNPPI08g4:P1TuYpgc92A:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=EzjNPPI08g4:P1TuYpgc92A:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=EzjNPPI08g4:P1TuYpgc92A:2mJPEYqXBVI"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=2mJPEYqXBVI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=EzjNPPI08g4:P1TuYpgc92A:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=dnMXMwOfBR0" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/copypastecharacter-iphone-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically iChat complete Transmission downloads</title>
		<link>http://my-domain.se/automatically-ichat-complete-transmission-downloads/</link>
		<comments>http://my-domain.se/automatically-ichat-complete-transmission-downloads/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 23:23:21 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[folder actions]]></category>
		<category><![CDATA[ichat]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[torrent]]></category>
		<category><![CDATA[transmission]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=310</guid>
		<description><![CDATA[Lets say you have an extra computer at home which can be used to download Linux distros using Transmission on Mac OS X. Here&#8217;s how you can let the computer iChat you when a download is complete. Sign up for a new iChat screen name and add your normal user as a buddy. In Transmission, [...]]]></description>
			<content:encoded><![CDATA[<p>Lets say you have an extra computer at home which can be used to download Linux distros using Transmission on Mac OS X. Here&#8217;s how you can let the computer iChat you when a download is complete.</p>

<ol>
<li>Sign up for a new iChat screen name and add your normal user as a buddy.</li>
<li>In Transmission, open Preferences 
→ Transfers and set the folder for incomplete files to something different than the &#8220;Default download location&#8221;. </li>
<li>Start Automator (in /Applications) and create a new workflow</li>
<li>Add the &#8220;Run AppleScript&#8221; action and paste in this code (replace YOURBUDDY with the scree name of your own iChat account:</li>
<li>Save as a plugin and choose &#8220;Folder action&#8221; in the &#8220;Save As&#8221; dialog. Select the folder you setup Transmission to use as the &#8220;Default download location&#8221;. <script src="http://gist.github.com/323285.js?file=iChat+Added+Files.applescript"></script></li>
<li>Done! The script should now send you an iChat message whenever a new file is added to the folder.</li>
</ol>

<p>I created this setup a pretty long time ago and still use it, but these days together with a <a href="http://clickontyler.com/blog/2009/01/forward-your-growl-notifications-to-twitter/">Growl notification plugin</a> that also twitters me when the download is complete.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/haraldmartin?a=TnkODdL6UPA:aDfmyz42cZE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=TnkODdL6UPA:aDfmyz42cZE:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=TnkODdL6UPA:aDfmyz42cZE:2mJPEYqXBVI"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=2mJPEYqXBVI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=TnkODdL6UPA:aDfmyz42cZE:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=dnMXMwOfBR0" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/automatically-ichat-complete-transmission-downloads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screencapture in Mac OS X from a SSH session or launchd jobs</title>
		<link>http://my-domain.se/screencapture-in-mac-os-x-from-a-ssh-session-or-launchd-jobs/</link>
		<comments>http://my-domain.se/screencapture-in-mac-os-x-from-a-ssh-session-or-launchd-jobs/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 22:47:56 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[launchd]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=295</guid>
		<description><![CDATA[If you&#8217;d ever need to use the screencapture command from a scheduled job (like launchd in OS X) or from a SSH session, you might find out that it doesn&#8217;t allow you to do that since you&#8217;re not the logged in user. To work around that, run the scheduled jobs as root and exec screencapture [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;d ever need to use the <code>screencapture</code> command from a scheduled job (like launchd in OS X) or from a SSH session, you might find out that it doesn&#8217;t allow you to do that since you&#8217;re not the logged in user.</p>

<p>To work around that, run the scheduled jobs as root and exec <code>screencapture</code> like this instead:</p>

<script src="http://gist.github.com/323256.js?file=screenshot.sh"></script>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/haraldmartin?a=BSWV5mabzM4:GYVtsq-ayhE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=BSWV5mabzM4:GYVtsq-ayhE:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=BSWV5mabzM4:GYVtsq-ayhE:2mJPEYqXBVI"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=2mJPEYqXBVI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/haraldmartin?a=BSWV5mabzM4:GYVtsq-ayhE:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/haraldmartin?d=dnMXMwOfBR0" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/screencapture-in-mac-os-x-from-a-ssh-session-or-launchd-jobs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
