<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Automatic notes in Yojimbo via a Mail.app rule</title>
	<atom:link href="http://www.hawkwings.net/2006/12/14/automatic-notes-in-yojimbo-via-a-mailapp-rule/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hawkwings.net/2006/12/14/automatic-notes-in-yojimbo-via-a-mailapp-rule/</link>
	<description>Tips and add-ons to make Apple Mail / Mail.app even better</description>
	<pubDate>Mon, 06 Oct 2008 23:34:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: ratz</title>
		<link>http://www.hawkwings.net/2006/12/14/automatic-notes-in-yojimbo-via-a-mailapp-rule/#comment-50533</link>
		<dc:creator>ratz</dc:creator>
		<pubDate>Sun, 17 Dec 2006 17:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.hawkwings.net/2006/12/14/automatic-notes-in-yojimbo-via-a-mailapp-rule/#comment-50533</guid>
		<description>Now that we have tags you can modify the mailToYojimbo to add tags supplied from a mail act-on rule.

Find the tell application as follows

tell application "Yojimbo"
	set db_id to make new note item with properties {contents:_contents, name:_name}
	add tags "inbox" to db_id

Then to create a mail act-on rule that runs the script as:

~/Library/Scriptis/MailToYojimboinbox

And your mail message will be added to yojimbo with the tag of inbox so you can find it later and add extra attributes; and then clear the inbox tag.

-or- if you prefer you can create a script the send to yojimbo and then activates yojimbo so you can finish the processing example:

tell application "Yojimbo"
	set db_id to make new note item with properties {contents:_contents, name:_name}
	add tags "inbox" to db_id

	activate
	-- hack to "show db_id" by opening it as a URL
	open location "x-yojimbo-item://" &#38; (id of db_id)</description>
		<content:encoded><![CDATA[<p>Now that we have tags you can modify the mailToYojimbo to add tags supplied from a mail act-on rule.</p>
<p>Find the tell application as follows</p>
<p>tell application &#8220;Yojimbo&#8221;<br />
	set db_id to make new note item with properties {contents:_contents, name:_name}<br />
	add tags &#8220;inbox&#8221; to db_id</p>
<p>Then to create a mail act-on rule that runs the script as:</p>
<p>~/Library/Scriptis/MailToYojimboinbox</p>
<p>And your mail message will be added to yojimbo with the tag of inbox so you can find it later and add extra attributes; and then clear the inbox tag.</p>
<p>-or- if you prefer you can create a script the send to yojimbo and then activates yojimbo so you can finish the processing example:</p>
<p>tell application &#8220;Yojimbo&#8221;<br />
	set db_id to make new note item with properties {contents:_contents, name:_name}<br />
	add tags &#8220;inbox&#8221; to db_id</p>
<p>	activate<br />
	&#8211; hack to &#8220;show db_id&#8221; by opening it as a URL<br />
	open location &#8220;x-yojimbo-item://&#8221; &amp; (id of db_id)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.479 seconds -->
