<?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>anoved.net &#187; marsedit</title>
	<atom:link href="http://anoved.net/tag/marsedit/feed/" rel="self" type="application/rss+xml" />
	<link>http://anoved.net</link>
	<description></description>
	<lastBuildDate>Sun, 13 May 2012 18:44:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Note Poster</title>
		<link>http://anoved.net/2008/05/note-poster/</link>
		<comments>http://anoved.net/2008/05/note-poster/#comments</comments>
		<pubDate>Sun, 11 May 2008 19:51:00 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[marsedit]]></category>
		<category><![CDATA[yojimbo]]></category>

		<guid isPermaLink="false">http://anoved.net/2008/05/note-poster/</guid>
		<description><![CDATA[Here&#8217;s a script to create a new post in MarsEdit from a note selected in Yojimbo. Why use a script when it&#8217;s already as easy as copy and paste? Well, maybe your computer is running out of paste. tell application "Yojimbo" set _items to selected items of browser window 1 if (_items is {}) or [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a script to create a new post in <a href="http://www.red-sweater.com/marsedit/">MarsEdit</a> from a note selected in <a href="http://www.barebones.com/products/yojimbo/">Yojimbo</a>. Why use a script when it&#8217;s already as easy as copy and paste? Well, maybe your computer is running out of paste.</p>
<pre><span class="keyword">tell application</span> "Yojimbo"
	<span class="keyword">set</span> <span class="variable">_items</span> <span class="keyword">to selected items of browser window</span> 1
	<span class="keyword">if</span> (<span class="variable">_items</span> <span class="keyword">is</span> {}) <span class="keyword">or</span> (<span class="variable">_items</span> <span class="keyword">is missing value</span>) <span class="keyword">then return</span>
	<span class="keyword">set</span> <span class="variable">_note</span> <span class="keyword">to item</span> 1 <span class="keyword">of</span> <span class="variable">_items</span>
	<span class="keyword">if class of</span> <span class="variable">_note</span> <span class="keyword">is not note item then return</span>
<span class="keyword">end tell</span>

<span class="keyword">tell application</span> "MarsEdit"
	<span class="keyword">set</span> <span class="variable">_post</span> <span class="keyword">to make new document</span>
	<span class="keyword">set body of</span> <span class="variable">_post</span> <span class="keyword">to contents of contents of</span> <span class="variable">_note</span>
	<span class="keyword">set title of</span> <span class="variable">_post</span> <span class="keyword">to name of</span> <span class="variable">_note</span>
	<span class="keyword">activate</span>
<span class="keyword">end tell</span></pre>
<p><a href="applescript://com.apple.scripteditor?action=new&#038;script=tell%20application%20%22Yojimbo%22%0D%09set%20_items%20to%20selected%20items%20of%20browser%20window%201%0D%09if%20%28_items%20is%20%7B%7D%29%20or%20%28_items%20is%20missing%20value%29%20then%20return%0D%09set%20_note%20to%20item%201%20of%20_items%0D%09if%20class%20of%20_note%20is%20not%20note%20item%20then%20return%0Dend%20tell%0D%0Dtell%20application%20%22MarsEdit%22%0D%09set%20_post%20to%20make%20new%20document%0D%09set%20body%20of%20_post%20to%20contents%20of%20contents%20of%20_note%0D%09set%20title%20of%20_post%20to%20name%20of%20_note%0D%09activate%0Dend%20tell">Click here to open the script directly in Script Editor.</a> Save it in <code>~/Library/Scripts/Applications/Yojimbo</code> and you&#8217;re ready to <a href="http://anoved.net/2007/09/script-runners/">run</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://anoved.net/2008/05/note-poster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

