<?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>Martin Ström &#187; osx</title>
	<atom:link href="http://my-domain.se/tag/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://my-domain.se</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 10:02:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Google Email Uploader</title>
		<link>http://my-domain.se/google-email-uploader/</link>
		<comments>http://my-domain.se/google-email-uploader/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 09:16:39 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[google email uploader]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[thunderbird]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=383</guid>
		<description><![CDATA[For different reasons I have many different Google accounts and wanted to merge them all into one Google Apps for Domain account. I also wanted to upload email from the past years to that account. I&#8217;ve tried before to move a lot of messages between Google/Gmail accounts by just dragging the messages from one IMAP [...]]]></description>
			<content:encoded><![CDATA[<p>For different reasons I have many different Google accounts and wanted to merge them all into one Google Apps for Domain account. I also wanted to upload email from the past years to that account. </p>

<p>I&#8217;ve tried before to move a lot of messages between Google/Gmail accounts by just dragging the messages from one IMAP account into another (using a regular IMAP client such as Thunderbird or Mail), but it never works for a lot of messages. Then I found out about the Google Email Uploader tool, and gave it a try.</p>

<p>My first attempt was to use the Mac version of <a href="http://code.google.com/p/google-email-uploader-mac/downloads/list">Google&#8217;s Email Uploader</a> and just upload all messages I had downloaded in my local OS X Mail setup. The upload was supposed to take around 18 hours and I tried twice but both times, the uploader seemed to get stuck on some message(s). </p>

<p>I downloaded the <a href="http://code.google.com/p/google-email-uploader-mac/source/checkout">source for the app</a> and tried to figure out if I could patch the app to make the work easier. But instead of digging through all code, I thought I should give the <a href="http://mail.google.com/mail/help/email_uploader.html">Windows version</a> a try instead. It has been around for a longer time and therefore probably a bit more reliable. </p>

<p>So I set up Thunderbird in my Windows installation (running VMware Fusion), and downloaded all messages from my IMAP server, and then uploaded them using Google Email Uploader for Windows. Everything went smooth and took about 20 hours. </p>

<p>For the next batch I imported the messsages into Thunderbird for Mac and then used the uploader tool for Mac. This time it worked great (but was fewer messages).</p>

<p>So, lesson learned: Try to import the messages into Thunderbird if the uploader get stuck when uploading from Mail.app. If that doesn&#8217;t work, try the Windows version.</p>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/google-email-uploader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TextMate command to copy an txmt:// url to the current file</title>
		<link>http://my-domain.se/textmate-command-to-copy-an-txmt-url-to-the-current-file/</link>
		<comments>http://my-domain.se/textmate-command-to-copy-an-txmt-url-to-the-current-file/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 12:06:47 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://my-domain.se/?p=413</guid>
		<description><![CDATA[I&#8217;ve been using this TextMate command for many years to copy an URL to the current file and then paste into a bug tracker/todo list or something.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using this TextMate command for many years to copy an URL to the current file and then paste into a bug tracker/todo list or something. </p>

<script src="http://gist.github.com/573490.js?file=snippet.sh"></script>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/textmate-command-to-copy-an-txmt-url-to-the-current-file/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>
]]></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&#8217;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 -->
]]></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>
]]></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>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>
]]></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>
]]></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>
		<item>
		<title>MissingDrawer TextMate Plugin for Mac OS X 10.6 Snow Leopard</title>
		<link>http://my-domain.se/missingdrawer-textmate-plugin-for-mac-os-x-10-6-snow-leopard/</link>
		<comments>http://my-domain.se/missingdrawer-textmate-plugin-for-mac-os-x-10-6-snow-leopard/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 06:37:51 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[10.6]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://burnfield.com/martin/?p=239</guid>
		<description><![CDATA[I really like the MissingDrawer plugin for TextMate but it stopped working for me after upgrading to Snow Leopard. I recompiled it for 10.6 and now it works again. Get the updated versions here (one with blue background and one with the white default). Update: Seems like the plugin doesn&#8217;t work very good after all. [...]]]></description>
			<content:encoded><![CDATA[<p>I really like the <a href="http://jannisleidel.com/2008/02/missingdrawer/">MissingDrawer</a> plugin for TextMate but it stopped working for me after upgrading to Snow Leopard. I recompiled it for 10.6 and now it works again.</p>

<p><a href="http://code.google.com/p/textmate-missingdrawer/issues/detail?id=24">Get the updated versions here (one with blue background and one with the white default).</a></p>

<p><em>Update:</em></p>

<div markdown="1" class="updated">

Seems like the plugin doesn&#8217;t work very good after all. It makes TextMate stop responding to modifier keys (command, shift etc) so my recompiled version isn&#8217;t very helpful right now. I&#8217;ll investigate and try to fix it.

</div>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/missingdrawer-textmate-plugin-for-mac-os-x-10-6-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RailsTerm 0.3</title>
		<link>http://my-domain.se/railsterm-03/</link>
		<comments>http://my-domain.se/railsterm-03/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 10:36:59 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://burnfield.com/martin/?p=193</guid>
		<description><![CDATA[Just a quick note that RailsTerm, my AppleScript to automatically open the tabs (in OS X 10.5 Terminal) needed for Rails development), is bumped to version 0.3. Since I use Passenger (mod_rails) and Passenger.prefpane for my local development the script will now auto detect the virtual hosts available on your system (in /etc/apache2/passenger_pane_vhosts/*.vhost.conf). I use [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://my-domain.se/wordpress/wp-content/uploads/2009/03/console.jpg" alt="Terminal + RailsTerm" title="Terminal + RailsTerm" width="600" height="442" class="alignnone size-full wp-image-195" /></p>

<p>Just a quick note that RailsTerm, my AppleScript to automatically open the tabs (in OS X 10.5 Terminal) needed for Rails development), is bumped to version 0.3.</p>

<p>Since I use <a href="http://www.modrails.com/">Passenger</a> (mod_rails) and <a href="http://www.fngtps.com/passenger-preference-pane">Passenger.prefpane</a> for my local development the script will now auto detect the virtual hosts available on your system (in <code>/etc/apache2/passenger_pane_vhosts/*.vhost.conf</code>). I use the script daily and is a real time-saver for me.</p>

<p><a href='http://burnfield.com/martin/wordpress/wp-content/uploads/railsterm1.zip'>RailsTerm</a> or browse source is on <a href="http://github.com/haraldmartin/railsterm">GitHub</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/railsterm-03/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean up your Spotlight search results</title>
		<link>http://my-domain.se/clean-up-your-spotlight-search-results/</link>
		<comments>http://my-domain.se/clean-up-your-spotlight-search-results/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 05:52:07 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mail.app]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[spotlight]]></category>

		<guid isPermaLink="false">http://burnfield.com/martin/?p=120</guid>
		<description><![CDATA[By default, Spotlight will index all your mail Mail.app messages and attachments, even those in your Trash and Spam folders. To exclude these folders from the Spotlight results you can add the folders to the &#8220;Privacy&#8221; section of the &#8220;Spotlight&#8221; pane in &#8220;System Preferences&#8221;. I&#8217;m using IMAP on Gmail so your path may be a [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://img.skitch.com/20080815-gjq734aieheyqk1igguya416hk.jpg" alt="Spotlight" width="600"></p>

<p>By default, Spotlight will index all your mail Mail.app messages and attachments, even those in your Trash and Spam folders. To exclude these folders from the Spotlight results you can add the folders to the &#8220;Privacy&#8221; section of the &#8220;Spotlight&#8221; pane in &#8220;System Preferences&#8221;.</p>

<p>I&#8217;m using IMAP on Gmail so your path may be a little different if you&#8217;re on another setup. The paths I choose to exclude are</p>

<pre><code>~/Library/Mail/IMAP-user@imap.gmail.com/[Gmail]/Trash.imapmbox
~/Library/Mail/IMAP-user@imap.gmail.com/[Gmail]/Spam.imapmbox
~/Library/Mail/IMAP-user@imap.gmail.com/[Gmail]/All Mail.imapmbox/Attachments
</code></pre>

<p>You might not want to use the last one if you tend to keep attachments in the mail message but I usually save the important ones to a real folder.</p>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/clean-up-your-spotlight-search-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Terminal Setup for Rails Development</title>
		<link>http://my-domain.se/my-terminal-setup-for-rails-development/</link>
		<comments>http://my-domain.se/my-terminal-setup-for-rails-development/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 09:15:27 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://burnfield.com/martin/?p=117</guid>
		<description><![CDATA[I&#8217;m quite happy with my Terminal.app setup right now for the Rails projects I&#8217;m working on and wanted to share the bits and pieces I use. First, I found a SIMB plugin for Terminal that&#8217;ll show the tab&#8217;s title in the tab instead of the running process. I use the plugin with a simple title [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m quite happy with my Terminal.app setup right now for the Rails projects I&#8217;m working on and wanted to share the bits and pieces I use.</p>

<p>First, I found a <a href="http://flickr.com/photos/djgraphite/2280004671/">SIMB plugin for Terminal</a> that&#8217;ll show the tab&#8217;s title in the tab instead of the running process. I use the plugin with a simple <code>title</code> helper in my <code>.bash_profile</code> to set the title simply.</p>

<pre><code>function title () {
  unset PROMPT_COMMAND # more on this later
  echo -ne "\e]0;$1\a"
}

# Usage:
# title 'my title'
</code></pre>

<p>Second, I use a technique I saw on <a href="http://pseudogreen.org/blog/set_tab_names_in_leopard_terminal.html">how to automatically set the title to display the current working directory as title</a>, but since I use the plugin and helper function above, I could simplify the <code>PROMPT_COMMAND</code> a bit:</p>

<pre><code>function set_window_and_tab_title {
  local title="$1"
  [[ -z "$title" ]] &amp;&amp; title="root"
  echo -ne "\e]0;${title}\a"
}

PROMPT_COMMAND='set_window_and_tab_title "${PWD##*/}"'
</code></pre>

<p>That&#8217;s why I unset <code>PROMPT_COMMAND</code> in my <code>title</code> function, so it won&#8217;t auto update when I choose to set it manually using the <code>title</code> function.</p>

<p>The last piece is an updated version of my old <a href="http://burnfield.com/martin/2007/07/19/applescript-to-open-iterm-tabs-for-rails-development/">Rails Term-script for iTerm</a> which has been updated (and improved) for the Terminal in Mac OS X Leopard instead of iTerm.</p>

<p>It will open the tabs I usually use when doing Rails development and set the title of each tab using the above mentioned functions. You need to enter you projects root directory and the projects you want to have easy access to. I&#8217;ve added some comments to the AS code to help you out.</p>

<p><a href="http://burnfield.com/martin/wordpress/wp-content/uploads/RailsTerm.zip">Download a zipped version of the AppleScript</a>. Just drag the script to the Script Editor (/Applications/Utilities) to edit it.</p>

<p>All source code for these scripts can also be viewed on <a href="http://pastie.textmate.org/230228">Pastie</a>. Let me know if you have any improvements.</p>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/my-terminal-setup-for-rails-development/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>iCal &amp; iPhone syncing in Leopard</title>
		<link>http://my-domain.se/ical-iphone-syncing-in-leopard/</link>
		<comments>http://my-domain.se/ical-iphone-syncing-in-leopard/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 20:00:57 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[ical]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[syncing]]></category>

		<guid isPermaLink="false">http://burnfield.com/martin/2007/11/22/ical-iphone-syncing-in-leopard/</guid>
		<description><![CDATA[Looks like I&#8217;m not the only one having problems with my iCal to/from iPhone syncing. After trying almost every possible solution I found in various forums and google, I finally came up with a fix that works for me. Like many others, I suspected the subscribed calendars were the problem and the iPhone synced fine [...]]]></description>
			<content:encoded><![CDATA[<p>Looks like I&#8217;m <a href="http://discussions.apple.com/thread.jspa?threadID=1204796">not</a> <a href="http://discussions.apple.com/thread.jspa?threadID=1202276">the</a> <a href="http://discussions.apple.com/thread.jspa?threadID=1200496">only one</a> having problems with my iCal to/from iPhone syncing.</p>

<p>After trying almost every possible solution I found in various forums and google, I finally came up with a fix that works for me. Like many others, I suspected the subscribed calendars were the problem and the iPhone synced fine after removing the subscriptions (including the built-in Birthdays calendar). But I have some subscribed calendars I want to have in iCal and found out that the <em>cannot live in a group</em>. I used to have a calendar group (File → New Calendar Group) for my <a href="http://fbcal.com">&#8220;noisy&#8221; calendars</a> so I could hide them easy with just one click. Looks like iCal/iPhone/Sync/OSX/whatever doesn&#8217;t like this and syncing stops working when using the group.</p>

<p>Doesn&#8217;t work:</p>

<p><img src='http://my-domain.se/wordpress/wp-content/uploads/2007/11/picture-2.png' alt='picture-2.png' /></p>

<p>Works:</p>

<p><img src='http://my-domain.se/wordpress/wp-content/uploads/2007/11/picture-1.png' alt='picture-1.png' /></p>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/ical-iphone-syncing-in-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mac OS X 10.5.1 and Multi-Safari</title>
		<link>http://my-domain.se/mac-os-x-1051-and-multi-safari/</link>
		<comments>http://my-domain.se/mac-os-x-1051-and-multi-safari/#comments</comments>
		<pubDate>Wed, 21 Nov 2007 17:12:26 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://burnfield.com/martin/2007/11/21/mac-os-x-1051-and-multi-safari/</guid>
		<description><![CDATA[Seems like Multi-Safari (at least 2.0.4) broke when upgrading to Mac OS X 10.5.1. I get this error: &#8220;You cannot use the application &#8216;Safari 2.0.4&#8242; with this version of Mac OS X.&#8221; Luckily, I&#8217;ve found a workaround. Just launch Safari from the command line (Terminal.app that is) and it should work for you: /Applications/Safari\ 2.0.4.app/Contents/MacOS/Safari [...]]]></description>
			<content:encoded><![CDATA[<p>Seems like <a href="http://michelf.com/projects/multi-safari/">Multi-Safari</a> (at least 2.0.4) broke when upgrading to Mac OS X 10.5.1. I get this error:</p>

<p>&#8220;You cannot use the application &#8216;Safari 2.0.4&#8242; with this version of Mac OS X.&#8221;</p>

<p>Luckily, I&#8217;ve found a workaround. Just launch Safari from the command line (Terminal.app that is) and it should work for you:</p>

<p><code>/Applications/Safari\ 2.0.4.app/Contents/MacOS/Safari &amp;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/mac-os-x-1051-and-multi-safari/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OmniFocus to iPhone bookmark exporter</title>
		<link>http://my-domain.se/omnifocus-to-iphone-bookmark-exporter/</link>
		<comments>http://my-domain.se/omnifocus-to-iphone-bookmark-exporter/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 17:29:01 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://burnfield.com/martin/2007/11/09/omnifocus-to-iphone-bookmark-exporter/</guid>
		<description><![CDATA[Since the iPhone lacks the possibility to export tasks from iCal I made hack/script to export all tasks from OmniFocus to a Safari bookmark and therefore be syncable with Safari. Read more in the OmniGroup forums and/or download the latest version here. Update: On request, here are some screenshots of how the todo list looks [...]]]></description>
			<content:encoded><![CDATA[<p>Since the iPhone lacks the possibility to export tasks from iCal I made hack/script to export all tasks from <a href="http://omnigroup.com/omnifocus">OmniFocus</a> to a Safari bookmark and therefore be syncable with Safari.</p>

<p><a href="http://forums.omnigroup.com/showthread.php?p=24238#post24238">Read more in the OmniGroup forums</a> and/or download the latest version <a href="http://burnfield.com/martin/wordpress/wp-content/uploads/OFfline.zip">here</a>.</p>

<p>Update: On request, here are some screenshots of how the todo list looks like:</p>

<p><img src='http://my-domain.se/wordpress/wp-content/uploads/2007/11/of-1.png' alt='' /></p>

<p><p style="margin-top: 1em;"><img src='http://my-domain.se/wordpress/wp-content/uploads/2007/11/of-2.png' alt='of-2.png' /></p></p>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/omnifocus-to-iphone-bookmark-exporter/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>AppleScript to open iTerm tabs for Rails development</title>
		<link>http://my-domain.se/applescript-to-open-iterm-tabs-for-rails-development/</link>
		<comments>http://my-domain.se/applescript-to-open-iterm-tabs-for-rails-development/#comments</comments>
		<pubDate>Thu, 19 Jul 2007 10:53:40 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[iterm]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://burnfield.com/martin/2007/07/19/applescript-to-open-iterm-tabs-for-rails-development/</guid>
		<description><![CDATA[Update: This script is ported (and improved) to work with OSX Leopards&#8217; Terminal.app. I never really liked iTerm because of slow redrawing, ugly text anti aliasing and not reflowing text when resizing the window. After reading some interviews on a Rails site today and saw that a lot of people are using iTerm i wanted [...]]]></description>
			<content:encoded><![CDATA[<p>Update: <a href="http://burnfield.com/martin/2008/07/12/my-terminal-setup-for-rails-development/">This script is ported (and improved) to work with OSX Leopards&#8217; Terminal.app.</a></p>

<p><a href="http://www.flickr.com/photos/haraldmartin/850313291/"><img src="http://farm2.static.flickr.com/1021/850313291_b0fc5a1a29.jpg?v=0" alt=""></a></p>

<p>I never really liked <a href="http://iterm.sourceforge.net">iTerm</a> because of slow redrawing, ugly text anti aliasing and not reflowing text when resizing the window.</p>

<p>After reading some interviews on a Rails site today and saw that a lot of people are using iTerm i wanted to give one more try (because I&#8217;d really like a tabbed terminal).</p>

<p>It has improved a lot the latest months and seems really usable now. To make Rails development easier, I hacked together a small AppleScript what will ask you for the path to the Rails directory you want to use and then open four new tabs with Server/Mongrel, Console, Autotest and the directory itself. I thought it could be useful for others as well so here you go:</p>

<p>Save as an .app and run from Quicksilver:</p>

<pre><code>
global rails_dir

tell application "iTerm"
    activate
    set rails_dir to the text returned of (display dialog ¬
        "Please Enter the Path to Your Rails Directory" default answer ¬
        "~/Projects/" as text)

    if (count of terminal) = 0 then make new terminal

    my open_tab("Server", "&#038;&#038; ./script/server")
    my open_tab("Console", "&#038;&#038; ./script/console")
    my open_tab("Autotest", "&#038;&#038; autotest")
    my open_tab("Rails Directory", "")
end tell

on open_tab(title, command)
    tell application "iTerm" to tell first terminal
        launch session "Default"
        tell last session
            write text "cd " &#038; rails_dir &#038; command
            set name to title
        end tell
    end tell
end run_command
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://my-domain.se/applescript-to-open-iterm-tabs-for-rails-development/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

