<?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>Roberto Carvajal &#187; Mac Tips</title>
	<atom:link href="http://robertocarvajal.org/category/mac-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://robertocarvajal.org</link>
	<description>personal blog</description>
	<lastBuildDate>Thu, 22 Jul 2010 01:37:35 +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>Safari 4 Google Search Shortcut</title>
		<link>http://robertocarvajal.org/2009/10/01/safari-4-google-search-shortcut/</link>
		<comments>http://robertocarvajal.org/2009/10/01/safari-4-google-search-shortcut/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 14:27:54 +0000</pubDate>
		<dc:creator>Roberto</dc:creator>
				<category><![CDATA[Mac Tips]]></category>

		<guid isPermaLink="false">http://robertocarvajal.org/2009/10/01/safari-4-google-search-shortcut/</guid>
		<description><![CDATA[By default Safari 4 has a very annoying shortcut to use the Google Search box and I am already used to the &#8984;K shortcut that Firefox has, to fix this we are going to use the same program I showed at my previous tip: Switching Safari Tabs With Custom Shortcuts. So, if you haven&#8217;t already [...]]]></description>
			<content:encoded><![CDATA[<p>By default Safari 4 has a very annoying shortcut to use the Google Search box and I am already used to the &#8984;K shortcut that Firefox has, to fix this we are going to use the same program I showed at my previous tip: <a href="http://robertocarvajal.org/2009/05/28/switching-safari-tabs-with-custom-shortcuts/" title="Switching Safari Tabs With Custom Shortcuts &laquo;  Roberto Carvajal">Switching Safari Tabs With Custom Shortcuts</a>.</p>
<p>So, if you haven&#8217;t already done so, go get <a href="http://www.shadowlab.org/Software/spark" title="Spark 3 B&ecirc;ta9">Spark</a>, open it and hit the &#8220;All Application&#8217;s HotKeys&#8221; button in the middle of the screen, it should show up a drawer, click the + sign and add Safari to the list, with Safari selected double click &#8220;Menu Item&#8221; in the &#8220;HotKey Groups&#8221; pane, in there press &#8220;click to edit&#8221; add &#8984;K or whatever shortcut you want, name it Google Search, hit the first drop down and select Safari again, and on the second drop down select &#8220;Edition -> Search -> Google Search&#8230;&#8221;, hit create and restart Safari, also make sure the Spark daemon is actually running.</p>
<p>That should be it, next time you press your shortcut you should be directly at the Google Search box.</p>
]]></content:encoded>
			<wfw:commentRss>http://robertocarvajal.org/2009/10/01/safari-4-google-search-shortcut/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Switching Safari Tabs With Custom Shortcuts</title>
		<link>http://robertocarvajal.org/2009/05/28/switching-safari-tabs-with-custom-shortcuts/</link>
		<comments>http://robertocarvajal.org/2009/05/28/switching-safari-tabs-with-custom-shortcuts/#comments</comments>
		<pubDate>Thu, 28 May 2009 23:04:48 +0000</pubDate>
		<dc:creator>Roberto</dc:creator>
				<category><![CDATA[Mac Tips]]></category>

		<guid isPermaLink="false">http://robertocarvajal.org/2009/05/28/switching-safari-tabs-with-custom-shortcuts/</guid>
		<description><![CDATA[So I dumped Minefield / Firefox a while a go to give a try to Safari 4 beta and I really love it, I love the speed and how perfectly integrates into OS X and with the brand new Web Inspector my life is complete, or is it?. Turns out one major flaw in Safari [...]]]></description>
			<content:encoded><![CDATA[<p>So I dumped Minefield / Firefox a while a go to give a try to Safari 4 beta and I really love it, I love the speed and how perfectly integrates into OS X and with the brand new Web Inspector my life is complete, or is it?. Turns out one <em>major</em> flaw in Safari for me is the lack of fast switching into different tabs, Safari has the nice shortcuts &#8984;1 to &#8984;9 bound to the bookmarks in your bookmark bar instead of the tabs, like Firefox does. So after researching a bit I found a way to do it using QuickSilver + AppleScript but using QuickSilver was kinda of an overkill for me for such a simple task and also it started to crash and I could never recover. Instead a good friend of mine told me about <a href="http://www.shadowlab.org/Software/software.php?sign=Sprk" title="Spark 3 B&ecirc;ta9">Spark</a>, it&#8217;s a light and free shortcut manager that let&#8217;s you define custom shortcuts per application and execute scripts / commands, that&#8217;s just exactly what you need.</p>
<p>The setup is simple, click <strong>&#8220;All Applications&#8217;s HotKeys&#8221;</strong> it will show a drawer, click the <strong>+</strong> button there, add Safari.</p>
<p>In there, hit &#8984;1 to add a new AppleScript instruction, name it &#8220;Tab1&#8243; and on the source write this:</p>

<div class="wp_syntax"><div class="code"><pre class="applescript" style="font-family:monospace;">  <span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #ff0033;">front</span> <span style="color: #0066ff;">window</span> <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Safari&quot;</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033; font-weight: bold;">set</span> current <span style="color: #0066ff;">tab</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">tab</span> <span style="color: #000000;">1</span></pre></div></div>

<p>Click the shortcut button and setup your shortcut, I suggest of course for the first tab &#8984;1</p>
<p>Hit save, and there you go, repeat that 8 more times changing the tab name, the shortcut and the last number on the AppleScript which refers to the tab name.</p>
<p>Also, as a goodie, I added the LastTab shortcut bound to &#8984;0</p>

<div class="wp_syntax"><div class="code"><pre class="applescript" style="font-family:monospace;">  <span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #ff0033;">front</span> <span style="color: #0066ff;">window</span> <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Safari&quot;</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033; font-weight: bold;">set</span> current <span style="color: #0066ff;">tab</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033;">last</span> <span style="color: #0066ff;">tab</span></pre></div></div>

<p>After you are done, go back to to Safari and test your brand new custom shortcuts to switch tabs.</p>
<p>Yes, now go ahead and tell your friends!.</p>
<p><strong>Update:</strong> I figured out how to do the &#8984;K shortcut for the Google Search box in this post: <a href="http://robertocarvajal.org/2009/10/01/safari-4-google-search-shortcut/">Safari 4 Google Search Shortcut</a></p>
]]></content:encoded>
			<wfw:commentRss>http://robertocarvajal.org/2009/05/28/switching-safari-tabs-with-custom-shortcuts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Pimping Terminal</title>
		<link>http://robertocarvajal.org/2009/03/15/pimping-terminal/</link>
		<comments>http://robertocarvajal.org/2009/03/15/pimping-terminal/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 05:25:45 +0000</pubDate>
		<dc:creator>Roberto</dc:creator>
				<category><![CDATA[Mac Tips]]></category>

		<guid isPermaLink="false">http://robertocarvajal.org/2009/03/15/pimping-terminal/</guid>
		<description><![CDATA[I&#8217;m a heavy Terminal user and I realize that Apple doesn&#8217;t really care about it because 99,9% of their users don&#8217;t even know what to do with it, Terminal only exists because Mac OS X is UNIX and it just has to be there. Having said that I still can&#8217;t quite understand why if it [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a heavy Terminal user and I realize that Apple doesn&#8217;t really care about it because 99,9% of their users don&#8217;t even know what to do with it, Terminal only exists because Mac OS X is UNIX and it just has to be there. Having said that I still can&#8217;t quite understand why if it sucks so much I replaced my fine iTerm in favor of Apple&#8217;s solution despite 2 serious issues. Well that&#8217;s no longer the case thanks to <a href="http://ciaranwal.sh">Ciarán Walsh</a> and his SIMBL plugins to fix the colors and the tab switching!</p>
<p>Please go ahead and follow his instructions:</p>
<p><a href="http://ciaranwal.sh/2007/11/01/customising-colours-in-leopard-terminal">Customising Colours in Leopard Terminal</a></p>
<p><a href="http://ciaranwal.sh/2007/12/10/tab-switching-in-terminal">Tab Switching in Terminal</a></p>
<p>Unfortunately I&#8217;m broke right now, but I&#8217;ll send you a donation (hopefully for beer) as soon as I can.</p>
<p>THANKS.</p>
]]></content:encoded>
			<wfw:commentRss>http://robertocarvajal.org/2009/03/15/pimping-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
