<?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>Hawk Wings &#187; importing messages</title>
	<atom:link href="http://www.hawkwings.net/tag/importing-messages/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hawkwings.net</link>
	<description>Tips and add-ons to make Apple Mail / Mail.app even better</description>
	<lastBuildDate>Tue, 26 Jul 2011 07:44:09 +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>Script to pipe emails into Yojimbo</title>
		<link>http://www.hawkwings.net/2006/09/04/script-to-pipe-emails-into-yojimbo/</link>
		<comments>http://www.hawkwings.net/2006/09/04/script-to-pipe-emails-into-yojimbo/#comments</comments>
		<pubDate>Mon, 04 Sep 2006 11:40:15 +0000</pubDate>
		<dc:creator>Tim Gaden</dc:creator>
				<category><![CDATA[Apple Mail]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[importing messages]]></category>
		<category><![CDATA[mail.app]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[yojimbo]]></category>

		<guid isPermaLink="false">http://www.hawkwings.net/2006/09/04/script-to-pipe-emails-into-yojimbo/</guid>
		<description><![CDATA[Jim Correia of Bare Bones Software has posted a script to the Yojimbo mailing list that will pipe a selected email from Mail.app into Yojimbo. This is handy (a) if you use Yojimbo and (b) like me, you find it a bit of a pain to import emails with the &#8220;Save PDF to Yojimbo&#8221; option [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.hawkwings.net/wp-content/uploads/2006/09/yojimbo.jpg"  align="right" border="0" hspace="10" vspace="0" alt="Yojimbo" height="98" width="100" />Jim Correia of Bare Bones Software has posted a script to the Yojimbo mailing list that will pipe a selected email from Mail.app into Yojimbo.</p>
<p>This is handy (a) if you use Yojimbo and (b) like me, you find it a bit of a pain to import emails with the &#8220;Save PDF to Yojimbo&#8221; option in the PDF section of the Print dialog.</p>
<p>The script will import the contents of the email and the sender, subject and date into a new Yojimbo note:</p>
<div align=center><img src="http://www.hawkwings.net/wp-content/uploads/2006/09/mailtoyojimboscreenie.jpg" alt="Mailtoyojimboscreenie" height="394" width="430" /></div>
<p>You can copy the text here:</p>
<div id="code">on generateMessageText(m)<br />
	tell application &#8220;Mail&#8221;<br />
		set _sender to sender of m<br />
		set _subject to subject of m<br />
		set _date to date received of m as string<br />
		set _contents to content of m<br />
		set _messageString to &#8220;From: &#8221; &#038; _sender &#038; return<br />
		set _messageString to _messageString &#038; &#8220;Subject: &#8221; &#038; _subject &#038; return<br />
		set _messageString to _messageString &#038; &#8220;Date: &#8221; &#038; _date &#038; return<br />
		set _messageString to _messageString &#038; return &#038; return &#038; _contents<br />
	end tell<br />
end generateMessageText</p>
<p>on run<br />
	tell application &#8220;Mail&#8221;<br />
		tell message viewer 1<br />
			set messageList to selected messages<br />
			set _name to subject of item 1 of messageList<br />
			set _contents to &#8220;&#8221;<br />
			repeat with m in messageList<br />
				set _contents to _contents &#038; my generateMessageText(m)<br />
			end repeat<br />
			tell application &#8220;Yojimbo&#8221;<br />
				make new note item with properties {contents:_contents, name:_name}<br />
			end tell<br />
		end tell<br />
	end tell<br />
end run</p></div>
<p>Or use <a href="http://www.hawkwings.net/files/MailToYojimbo.zip">this pre-complied version</a>.  Save it into the same place as the rest of your mail scripts, maybe give it a keyboard short-cut with <a href="http://www.red-sweater.com/fastscripts/">FastScripts Lite</a> <img src="http://www.hawkwings.net/images/extlink.jpg"/> or set a Quicksilver trigger for it or attach it to a <a href="http://www.indev.ca/MailActOn.html">Mail Act-on</a> <img src="http://www.hawkwings.net/images/extlink.jpg"/> rule, and you&#8217;re done.</p>
<p>Nifty.  A big thanks to Jim.<tags>yojimbo, mail.app, apple mail, applescript, script, importing messages, productivity, shortcuts</tags><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.hawkwings.net/2005/09/07/sending-one-reply-to-multiple-emails/" rel="bookmark" title="7 September 2005, 11:26 pm">Sending one reply to multiple emails</a></li>
<li><a href="http://www.hawkwings.net/2007/04/16/a-smarter-script-for-piping-emails-into-yojimbo/" rel="bookmark" title="16 April 2007, 11:58 pm">A smarter script for piping email into Yojimbo</a></li>
<li><a href="http://www.hawkwings.net/2007/01/14/script-to-send-a-yojimbo-item-with-mailapp/" rel="bookmark" title="14 January 2007, 11:59 pm">Script to send a Yojimbo item with Mail.app</a></li>
<li><a href="http://www.hawkwings.net/2007/02/05/email-to-yojimbo-script-with-pdf-support/" rel="bookmark" title="5 February 2007, 10:30 pm">Email to Yojimbo script with PDF support</a></li>
<li><a href="http://www.hawkwings.net/2006/11/22/scripts-for-yojimbo-delicious-and-netnewswire-integration/" rel="bookmark" title="22 November 2006, 10:48 pm">Scripts for Yojimbo, del.icio.us and NetNewsWire integration</a></li>
</ul>
<p><!-- Similar Posts took 6.933 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hawkwings.net/2006/09/04/script-to-pipe-emails-into-yojimbo/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

