<?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>codesofa &#187; applescript launchbar pastie</title>
	<atom:link href="http://codesofa.com/blog/archive/tag/applescript-launchbar-pastie/feed" rel="self" type="application/rss+xml" />
	<link>http://codesofa.com</link>
	<description>chaotic. pragmatic. smart(ass).</description>
	<lastBuildDate>Wed, 04 Aug 2010 16:05:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Use pastie.org with LaunchBar</title>
		<link>http://codesofa.com/blog/archive/2009/01/08/use-pastieorg-with-launchbar.html</link>
		<comments>http://codesofa.com/blog/archive/2009/01/08/use-pastieorg-with-launchbar.html#comments</comments>
		<pubDate>Thu, 08 Jan 2009 06:08:24 +0000</pubDate>
		<dc:creator>marc</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[applescript launchbar pastie]]></category>

		<guid isPermaLink="false">http://codesofa.com/?p=177</guid>
		<description><![CDATA[Since a while, I&#8217;m having senile insomnia, so I thought, I should use it for good. One thing that always bugs me at work is the work with pastie (or any other paste-thing) because of the copy &#8211; paste &#8211; copy thing. So I wrote a very little script to use it with LaunchBar. What [...]]]></description>
			<content:encoded><![CDATA[<p>Since a while, I&#8217;m having senile insomnia, so I thought, I should use it for good. One thing that always bugs me at work is the work with <a href="http://pastie.org">pastie</a> (or any other paste-thing) because of the copy &#8211; paste &#8211; copy thing.<br />
So I wrote a very little script to use it with <a href="http://www.obdev.at/products/launchbar/beta.html">LaunchBar</a>.</p>
<p>What does it do? It takes your clipboard, pastes it to pastie and pastes the returned URL back into the clipboard..</p>
<p>Here is the script:</p>
<h3 class="codetitle">pastie.scpt</h3>
<pre><code class="prettyprint">set pastieURL to "http://pastie.org/pastes"
try
set responseURL to (do shell script "curl http://pastie.caboo.se/pastes/create -H 'Expect:' -F 'paste[parser]=plaintext' -F 'paste[body]=" &amp; (the clipboard) &amp; "' -F 'paste[authorization]=burger' -s -L -o /dev/null -w '%{url_effective}'")
set the clipboard to responseURL
end try</code></pre>
<p>Save this to &#8220;~/Library/Application Support/LaunchBar/Actions/&#8221; (works with LaunchBar 5) and it will detect it automatically. Type the name of your script and you&#8217;re done. So much for my insomnia :)</p>
<p><strong>UPDATE:</strong> Just found out about <a href="http://www.shadowlab.org/Software/spark.php">Spark</a> which let&#8217;s you define shortcuts for Apple Scripts &#8211; which is another nice way.</p>
]]></content:encoded>
			<wfw:commentRss>http://codesofa.com/blog/archive/2009/01/08/use-pastieorg-with-launchbar.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->