<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Robby on Rails: Tag quicksilver</title>
    <link>http://www.robbyonrails.com/articles/tag/quicksilver</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>thoughts.sort_by{|t| t[:topic]}.collect </description>
    <item>
      <title>RubyURL through QuickSilver</title>
      <description>&lt;p&gt;When &lt;a href="http://chriszgriffin.com/"&gt;Chris Griffin&lt;/a&gt; saw &lt;a href="http://www.leancrew.com/all-this/2007/11/shortened_urls_with_quicksilve.html"&gt;this post&lt;/a&gt;, he wanted to do the same with &lt;a href="http://rubyurl.com"&gt;RubyURL&lt;/a&gt;. Since the ShortURL gem was broken, I didn&amp;#8217;t get a chance to dive into it. However, with the shorturl command now working again with RubyURL, we get QuickSilver and RubyURL working together really quickly.&lt;/p&gt;


	&lt;p&gt;First, you&amp;#8217;ll need a recent version of the ShortURL gem installed.&lt;/p&gt;


	&lt;p&gt;&lt;code&gt;sudo gem install shorturl&lt;/code&gt;&lt;/p&gt;


	&lt;p&gt;Then you will want to add the following to &lt;code&gt;~/Library/Scripts/rubyurl.scpt&lt;/code&gt;. You will need to create this file.&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
  #
  # Change accordingly if shorturl is not under /usr/bin/shorturl
  #
  set shorturl_cmd to "/opt/local/bin/shorturl" 

  tell application "Safari" 
      set original_url to URL of front document
  end tell

  set cmd to shorturl_cmd &amp;#38; " " &amp;#38; original_url

  set ruby_url to do shell script cmd
  set the clipboard to ruby_url as text
  beep
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Then you can add this script to run through QuickSilver. For details, jump to the setup process on &lt;a href="http://www.leancrew.com/all-this/2007/11/long_and_shortened_url_scripts.html"&gt;this post&lt;/a&gt;.&lt;/p&gt;


&lt;div class="thumbnail"&gt;&lt;a href="http://skitch.com/robbyrussell/rpjk/rubyurl-quicksilver"&gt;&lt;img src="http://img.skitch.com/20080107-1uxg37c148kwe4cpm58m14ifwt.preview.jpg" alt="rubyurl quicksilver" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family: Lucida Grande, Trebuchet, sans-serif, Helvetica, Arial; font-size: 10px; color: #808080"&gt;Uploaded with &lt;a href="http://plasq.com/"&gt;plasq&lt;/a&gt;&amp;#8217;s &lt;a href="http://skitch.com"&gt;Skitch&lt;/a&gt;!&lt;/span&gt;&lt;/div&gt;

	&lt;p&gt;This will make it much easier to paste RubyURLs into my Twitter client, &lt;span class="caps"&gt;IRC&lt;/span&gt;, etc.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;ll try to post a more thorough tutorial soon, but wanted to share in the meantime.&lt;/p&gt;
</description>
      <pubDate>Sun, 06 Jan 2008 20:42:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:ee0e9bcc-6160-4913-b181-a5f4c95a7f68</guid>
      <author>Robby Russell</author>
      <link>http://www.robbyonrails.com/articles/2008/01/06/rubyurl-through-quicksilver</link>
      <category>RubyURL</category>
      <category>quicksilver</category>
      <category>applescript</category>
      <category>rubyurl</category>
      <category>hack</category>
      <category>tip</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
