<?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"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Entourage to Evernote Applescript</title> <atom:link href="http://veritrope.com/tips/entourage-to-evernote/feed/" rel="self" type="application/rss+xml" /><link>http://veritrope.com/tech/entourage-to-evernote/</link> <description>Tech, Arts, Travel</description> <lastBuildDate>Fri, 10 Feb 2012 05:15:20 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: Justin</title><link>http://veritrope.com/tech/entourage-to-evernote/#comment-18270</link> <dc:creator>Justin</dc:creator> <pubDate>Mon, 08 Aug 2011 14:05:24 +0000</pubDate> <guid
isPermaLink="false">http://veritrope.com/?p=1148#comment-18270</guid> <description>Hmmm... that is weird!
If this was happening to me, I think I&#039;d try renaming the script &lt;a href=&quot;http://www.office.mvps.org/script/add_shortcuts.html&quot; rel=&quot;nofollow&quot;&gt;according to these instructions&lt;/a&gt;. My hope would be that this would force Entourage to detect it and, at the same time, activating a keyboard shortcut to run the script.</description> <content:encoded><![CDATA[<p>Hmmm&#8230; that is weird!</p><p>If this was happening to me, I think I&#8217;d try renaming the script <a
target="_blank" href="http://www.office.mvps.org/script/add_shortcuts.html"  rel="nofollow">according to these instructions</a>. My hope would be that this would force Entourage to detect it and, at the same time, activating a keyboard shortcut to run the script.</p> ]]></content:encoded> </item> <item><title>By: James Harrison</title><link>http://veritrope.com/tech/entourage-to-evernote/#comment-18263</link> <dc:creator>James Harrison</dc:creator> <pubDate>Mon, 08 Aug 2011 10:10:45 +0000</pubDate> <guid
isPermaLink="false">http://veritrope.com/?p=1148#comment-18263</guid> <description>Followed your instructions to the letter but the script does not appear in the Entourage script menu.  (Downloaded, moved to Entourage Script Menu Items... and nothing appears)
I presume I don&#039;t need to reboot?  I did restart Entourage but it made no difference.
Any ideas would be useful!
James
Entourage version: 12.2.9
Evernote version 2.1.0
iMac
Intel Core 2 Duo
3.06 GHz
Number Of Processors:	1
Total Number Of Cores:	2
L2 Cache:	3 MB
Memory:	4 GB</description> <content:encoded><![CDATA[<p>Followed your instructions to the letter but the script does not appear in the Entourage script menu.  (Downloaded, moved to Entourage Script Menu Items&#8230; and nothing appears)</p><p>I presume I don&#8217;t need to reboot?  I did restart Entourage but it made no difference.</p><p>Any ideas would be useful!</p><p>James</p><p>Entourage version: 12.2.9<br
/> Evernote version 2.1.0</p><p>iMac<br
/> Intel Core 2 Duo<br
/> 3.06 GHz<br
/> Number Of Processors:	1<br
/> Total Number Of Cores:	2<br
/> L2 Cache:	3 MB<br
/> Memory:	4 GB</p> ]]></content:encoded> </item> <item><title>By: Justin</title><link>http://veritrope.com/tech/entourage-to-evernote/#comment-13414</link> <dc:creator>Justin</dc:creator> <pubDate>Thu, 19 May 2011 23:27:42 +0000</pubDate> <guid
isPermaLink="false">http://veritrope.com/?p=1148#comment-13414</guid> <description>In case you haven&#039;t already found it, the new &lt;a href=&quot;http://veritrope.com/code/outlook-2011-to-evernote-beta-2/&quot; rel=&quot;nofollow&quot;&gt;Outlook 2011 to Evernote AppleScript&lt;/a&gt; works with Notes!</description> <content:encoded><![CDATA[<p>In case you haven&#8217;t already found it, the new <a
href="http://veritrope.com/code/outlook-2011-to-evernote-beta-2/"  rel="nofollow">Outlook 2011 to Evernote AppleScript</a> works with Notes!</p> ]]></content:encoded> </item> <item><title>By: bmar</title><link>http://veritrope.com/tech/entourage-to-evernote/#comment-13408</link> <dc:creator>bmar</dc:creator> <pubDate>Thu, 19 May 2011 22:12:13 +0000</pubDate> <guid
isPermaLink="false">http://veritrope.com/?p=1148#comment-13408</guid> <description>Hi, I would really love to find a way to export Entrourage - or Outlook for mac &quot;Notes&quot; (not emails or contact or calendar entries - only the &quot;Notes&quot;) into Evernote - does anyone know how this can be done?
Thanks, bmar</description> <content:encoded><![CDATA[<p>Hi, I would really love to find a way to export Entrourage &#8211; or Outlook for mac &#8220;Notes&#8221; (not emails or contact or calendar entries &#8211; only the &#8220;Notes&#8221;) into Evernote &#8211; does anyone know how this can be done?<br
/> Thanks, bmar</p> ]]></content:encoded> </item> <item><title>By: Justin</title><link>http://veritrope.com/tech/entourage-to-evernote/#comment-127</link> <dc:creator>Justin</dc:creator> <pubDate>Wed, 18 Nov 2009 16:41:36 +0000</pubDate> <guid
isPermaLink="false">http://veritrope.com/?p=1148#comment-127</guid> <description>&lt;strong&gt;To be very clear about what this is for people just joining the thread (and for those new to AppleScript):&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;Pete&#039;s modified code will create one note for the email message body and and additional note for each attachment to that email. You can then manually merge these items into a single note if you&#039;d like&lt;/li&gt;
&lt;li&gt;Pete&#039;s modification to the script will remove certain typography from your note body in order to avoid a specific type of error. If keeping the typographical symbols inside your notes unchanged is important to you, you shouldn&#039;t use this code.&lt;/li&gt;
&lt;/ul&gt;
Thanks for your hard work and for posting this, Pete!</description> <content:encoded><![CDATA[<p><strong>To be very clear about what this is for people just joining the thread (and for those new to AppleScript):</strong></p><ul><li>Pete&#8217;s modified code will create one note for the email message body and and additional note for each attachment to that email. You can then manually merge these items into a single note if you&#8217;d like</li><li>Pete&#8217;s modification to the script will remove certain typography from your note body in order to avoid a specific type of error. If keeping the typographical symbols inside your notes unchanged is important to you, you shouldn&#8217;t use this code.</li></ul><p>Thanks for your hard work and for posting this, Pete!</p> ]]></content:encoded> </item> <item><title>By: Pete</title><link>http://veritrope.com/tech/entourage-to-evernote/#comment-126</link> <dc:creator>Pete</dc:creator> <pubDate>Wed, 18 Nov 2009 13:17:35 +0000</pubDate> <guid
isPermaLink="false">http://veritrope.com/?p=1148#comment-126</guid> <description>Upps wrong copy/paste. ;-)
&lt;code&gt;
set myContent to do shell script &quot;echo &quot; &amp; quoted form of myContent &amp; &quot; &#124; sed -E &#039;s/(\\&lt;[^)/\\1\\2/g&#039;&quot;
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Upps wrong copy/paste. <img
src='http://veritrope.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p><div
class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">set myContent to do shell script &quot;echo &quot; &amp;amp; quoted form of myContent &amp;amp; &quot; | sed -E 's/(\\&amp;lt;[^)/\\1\\2/g'&quot;</div></div> ]]></content:encoded> </item> <item><title>By: Pete</title><link>http://veritrope.com/tech/entourage-to-evernote/#comment-125</link> <dc:creator>Pete</dc:creator> <pubDate>Wed, 18 Nov 2009 13:15:08 +0000</pubDate> <guid
isPermaLink="false">http://veritrope.com/?p=1148#comment-125</guid> <description>Ar more conservative version would be
&lt;code&gt;
set myContent to do shell script &quot;echo &quot; &amp; quoted form of myContent &amp; &quot; &#124; sed &#039;s/\\&lt;[^&lt;]*\\/\\&gt;//g&#039;&quot;
&lt;/code&gt;
just stripping the / from the closing /&gt; tag</description> <content:encoded><![CDATA[<p>Ar more conservative version would be</p><div
class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">set myContent to do shell script &quot;echo &quot; &amp; quoted form of myContent &amp; &quot; | sed 's/\\&lt;[^&lt;]*\\/\\&gt;//g'&quot;</div></div><p>just stripping the / from the closing /&gt; tag</p> ]]></content:encoded> </item> <item><title>By: Pete</title><link>http://veritrope.com/tech/entourage-to-evernote/#comment-124</link> <dc:creator>Pete</dc:creator> <pubDate>Wed, 18 Nov 2009 12:58:41 +0000</pubDate> <guid
isPermaLink="false">http://veritrope.com/?p=1148#comment-124</guid> <description>Hi Justin,
it is not ideal to mess with body of a note, but the following modification of your script gets rid of the error message:
&lt;code&gt;
repeat with thisMessage in theMessages
set myTitle to the subject of thisMessage
set myContent to the content of thisMessage
set myContent to do shell script &quot;echo &quot; &amp; quoted form of myContent &amp; &quot; &#124; sed &#039;s/\\&lt;[^&lt;]*\\/\\&gt;//g&#039;&quot;
&lt;/code&gt;
At least a workaround until Evernote improves their text parser.
Below the changes incorporated into my initial mods of your script for the lazy people. ;-)
Have fun.
Pete
&lt;code&gt;
(*
http://veritrope.com
Entourage to Evernote
Version 1.1
Nov 17, 2009
Modified by Peter Gutbrod to add clipping of email attachments.
Project Status, Latest Updates, and Comments Collected at:
http://veritrope.com/tips/entourage-to-evernote
Some choices inspired by the following scripts/authors:
-- Mike Hall (http://mph.puddingbowl.org/)
-- Ernie Soffronoff
-- Daniel N. Byler&#039;s DEVONthink script
-- NetNewsWire To Pukka and Yojimbo
-- Jan Erik Mostrom&#039;s script
-- David Nunez scripts
-- MANY, MANY OTHERS!
Installation:  A few options....
-- You can highlight the email messages you want to archive into Evernote and double-click this script file;
-- You can save this script to ~/Documents/Microsoft User Data folder or simply drag the script into the Entourage Script Menu Items folder and it is immediately available for use.
-- Keyboard shortcuts can also be assigned to AppleScripts in the script menu using the System Preferences &quot;Keyboard &amp; Mouse Settings&quot;.
FastScripts Installation (Optional, but recommended):
-- Download and Install FastScripts from http://www.red-sweater.com/fastscripts/index.html
-- Save this script to ~/Library/Scripts/Applications/Microsoft Entourage
-- Set up your keyboard shortcut in FastScripts Preferences
*)
property successCount : 0
property MailTitle : &quot;&quot;
property EVTag : &quot;&quot;
property myTitle : &quot;&quot;
(* CHECK FOR GROWL *)
tell application &quot;System Events&quot;
set processnames to name of every process
end tell
if &quot;GrowlHelperApp&quot; is in processnames then
tell application &quot;GrowlHelperApp&quot;
set the allNotificationsList to {&quot;Success Notification&quot;, &quot;Failure Notification&quot;}
set the enabledNotificationsList to {&quot;Success Notification&quot;, &quot;Failure Notification&quot;}
register as application ¬
&quot;Entourage to Evernote&quot; all notifications allNotificationsList ¬
default notifications enabledNotificationsList ¬
icon of application &quot;Evernote&quot;
end tell
end if
tell application &quot;Finder&quot;
set TmpFolder to ((folder &quot;tmp&quot; of home) as text)
end tell
(*MAIN PROGRAM *)
tell application &quot;Microsoft Entourage&quot;
try
if (selection is not 0) then
set defaultTag to &quot;Email Message&quot;
set userInput to ¬
text returned of ¬
(display dialog &quot;Enter Tags, separated by colons or commas:&quot; &amp; return &amp; return &amp; ¬
&quot;NOTE: Default Tag is &#039;Email Message&#039;&quot; default answer defaultTag)
set theDelims to {&quot;:&quot;, &quot;,&quot;}
set EVTag to my Tag_List(userInput, theDelims)
set theMessages to current messages
set EVnotebook to my Notebook_List()
repeat with thisMessage in theMessages
set myTitle to the subject of thisMessage
set myContent to the content of thisMessage
set myContent to do shell script &quot;echo &quot; &amp; quoted form of myContent &amp; &quot; &#124; sed &#039;s/\\&lt;[^&lt;]*\\/\\&gt;//g&#039;&quot;
set ReplyAddr to the sender&#039;s address of thisMessage
set EmailDate to the time received of thisMessage
set myText to &quot;Message from mailto:&quot; &amp; ReplyAddr &amp; &quot; on &quot; &amp; EmailDate &amp; &quot;:&quot; &amp; return &amp; return &amp; myContent
tell application &quot;Evernote&quot;
set n to create note with text myText ¬
title myTitle ¬
notebook ¬
EVnotebook tags EVTag
set creation date of n to EmailDate
set source URL of n to ReplyAddr
end tell
set theAttachments to the attachments of thisMessage
repeat with thisAttachment in theAttachments
set theName to name of thisAttachment
set FilePath to TmpFolder &amp; theName
save thisAttachment in FilePath
tell application &quot;Evernote&quot;
set n to create note from file FilePath ¬
notebook EVnotebook tags EVTag
set creation date of n to EmailDate
set source URL of n to ReplyAddr
end tell
tell application &quot;Finder&quot;
delete file FilePath
end tell
end repeat
set successCount to successCount + 1
end repeat
if &quot;GrowlHelperApp&quot; is in processnames then
tell application &quot;GrowlHelperApp&quot; -- GROWL SUCCESS
notify with name ¬
&quot;Success Notification&quot; title ¬
&quot;Import Success&quot; description &quot;Successfully Exported &quot; &amp; successCount &amp; ¬
&quot; Messages to Evernote!&quot; application name &quot;Entourage to Evernote&quot;
end tell
set successCount to 0
end if
else if &quot;GrowlHelperApp&quot; is in processnames then
tell application &quot;GrowlHelperApp&quot; -- GROWL FAILURE FOR NO SELECTION
notify with name ¬
&quot;Failure Notification&quot; title ¬
&quot;Import Failure&quot; description ¬
&quot;No headline or tab selected!&quot; application name &quot;Entourage to Evernote&quot;
end tell
else if &quot;GrowlHelperApp&quot; is not in processnames then -- NON-GROWL ERROR MSG. FOR NO SELECTION
display dialog &quot;No headline or tab selected!&quot; with icon 0
end if
(* ERROR HANDLING *)
on error errText number errNum
if &quot;GrowlHelperApp&quot; is in processnames then
tell application &quot;GrowlHelperApp&quot; -- GROWL FAILURE FOR ERROR
notify with name ¬
&quot;Failure Notification&quot; title ¬
&quot;Import Failure&quot; description &quot;Failed to export &quot; &amp; return &amp; myTitle &amp; ¬
&quot;\&quot;  due to the following error: &quot; &amp; return &amp; errText ¬
application name &quot;Entourage to Evernote&quot;
end tell
else if &quot;GrowlHelperApp&quot; is not in processnames then -- NON-GROWL ERROR MSG. FOR ERROR
display dialog &quot;Item Failed to Import: &quot; &amp; errNum &amp; return &amp; errText with icon 0
end if
end try
end tell
(* SUBROUTINES *)
--TAG SELECTION SUBROUTINE
on Tag_List(userInput, theDelims)
set oldDelims to AppleScript&#039;s text item delimiters
set theList to {userInput}
repeat with aDelim in theDelims
set AppleScript&#039;s text item delimiters to aDelim
set newList to {}
repeat with anItem in theList
set newList to newList &amp; text items of anItem
end repeat
set theList to newList
end repeat
return theList
set AppleScript&#039;s text item delimiters to oldDelims
end Tag_List
--EVERNOTE NOTEBOOK SELECTION SUBROUTINE
on Notebook_List()
tell application &quot;Evernote&quot;
activate
set listOfNotebooks to {} (*PREPARE TO GET EVERNOTE&#039;S LIST OF NOTEBOOKS *)
(*GET THE NOTEBOOK LIST *)
set EVNotebooks to every notebook
repeat with currentNotebook in EVNotebooks
set currentNotebookName to (the name of currentNotebook)
copy currentNotebookName to the end of listOfNotebooks
end repeat
(*SORT THE LIST *)
set Folders_sorted to my simple_sort(listOfNotebooks)
(*USER SELECTION FROM NOTEBOOK LIST *)
set SelNotebook to choose from list of Folders_sorted with title &quot;Select Evernote Notebook&quot; with prompt ¬
&quot;Current Evernote Notebooks&quot; OK button name &quot;OK&quot; cancel button name &quot;New Notebook&quot;
if (SelNotebook is false) then (*CREATE NEW NOTEBOOK OPTION *)
set userInput to ¬
text returned of (display dialog &quot;Enter New Notebook Name:&quot; default answer &quot;&quot;)
set EVnotebook to userInput
else
set EVnotebook to item 1 of SelNotebook
end if
end tell
end Notebook_List
--SORT SUBROUTINE
on simple_sort(my_list)
set the index_list to {}
set the sorted_list to {}
repeat (the number of items in my_list) times
set the low_item to &quot;&quot;
repeat with i from 1 to (number of items in my_list)
if i is not in the index_list then
set this_item to item i of my_list as text
if the low_item is &quot;&quot; then
set the low_item to this_item
set the low_item_index to i
else if this_item comes before the low_item then
set the low_item to this_item
set the low_item_index to i
end if
end if
end repeat
set the end of sorted_list to the low_item
set the end of the index_list to the low_item_index
end repeat
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Hi Justin,</p><p>it is not ideal to mess with body of a note, but the following modification of your script gets rid of the error message:</p><div
class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">repeat with thisMessage in theMessages<br
/> &nbsp; &nbsp; set myTitle to the subject of thisMessage<br
/> &nbsp; &nbsp; set myContent to the content of thisMessage<br
/> &nbsp; &nbsp; set myContent to do shell script &quot;echo &quot; &amp; quoted form of myContent &amp; &quot; | sed 's/\\&lt;[^&lt;]*\\/\\&gt;//g'&quot;</div></div><p>At least a workaround until Evernote improves their text parser.</p><p>Below the changes incorporated into my initial mods of your script for the lazy people. <img
src='http://veritrope.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p><p>Have fun.</p><p>Pete</p><div
class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">(*<br
/> http://veritrope.com<br
/> Entourage to Evernote<br
/> Version 1.1<br
/> Nov 17, 2009<br
/> <br
/> Modified by Peter Gutbrod to add clipping of email attachments.<br
/> <br
/> Project Status, Latest Updates, and Comments Collected at:<br
/> http://veritrope.com/tips/entourage-to-evernote<br
/> <br
/> &nbsp; &nbsp; Some choices inspired by the following scripts/authors:<br
/> &nbsp; &nbsp; -- Mike Hall (http://mph.puddingbowl.org/)<br
/> &nbsp; &nbsp; -- Ernie Soffronoff<br
/> &nbsp; &nbsp; -- Daniel N. Byler's DEVONthink script<br
/> &nbsp; &nbsp; -- NetNewsWire To Pukka and Yojimbo<br
/> &nbsp; &nbsp; -- Jan Erik Mostrom's script<br
/> &nbsp; &nbsp; -- David Nunez scripts<br
/> &nbsp; &nbsp; -- MANY, MANY OTHERS!<br
/> <br
/> Installation: &nbsp;A few options....<br
/> <br
/> -- You can highlight the email messages you want to archive into Evernote and double-click this script file;<br
/> -- You can save this script to ~/Documents/Microsoft User Data folder or simply drag the script into the Entourage Script Menu Items folder and it is immediately available for use.<br
/> -- Keyboard shortcuts can also be assigned to AppleScripts in the script menu using the System Preferences &quot;Keyboard &amp;amp; Mouse Settings&quot;.<br
/> <br
/> FastScripts Installation (Optional, but recommended):<br
/> -- Download and Install FastScripts from http://www.red-sweater.com/fastscripts/index.html<br
/> -- Save this script to ~/Library/Scripts/Applications/Microsoft Entourage<br
/> -- Set up your keyboard shortcut in FastScripts Preferences<br
/> *)<br
/> <br
/> property successCount : 0<br
/> property MailTitle : &quot;&quot;<br
/> property EVTag : &quot;&quot;<br
/> property myTitle : &quot;&quot;<br
/> <br
/> (* CHECK FOR GROWL *)<br
/> tell application &quot;System Events&quot;<br
/> &nbsp; &nbsp; set processnames to name of every process<br
/> end tell<br
/> if &quot;GrowlHelperApp&quot; is in processnames then<br
/> &nbsp; &nbsp; tell application &quot;GrowlHelperApp&quot;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; set the allNotificationsList to {&quot;Success Notification&quot;, &quot;Failure Notification&quot;}<br
/> &nbsp; &nbsp; &nbsp; &nbsp; set the enabledNotificationsList to {&quot;Success Notification&quot;, &quot;Failure Notification&quot;}<br
/> &nbsp; &nbsp; &nbsp; &nbsp; register as application ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Entourage to Evernote&quot; all notifications allNotificationsList ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default notifications enabledNotificationsList ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; icon of application &quot;Evernote&quot;<br
/> &nbsp; &nbsp; end tell<br
/> end if<br
/> <br
/> tell application &quot;Finder&quot;<br
/> &nbsp; &nbsp; set TmpFolder to ((folder &quot;tmp&quot; of home) as text)<br
/> end tell<br
/> <br
/> (*MAIN PROGRAM *)<br
/> tell application &quot;Microsoft Entourage&quot;<br
/> &nbsp; &nbsp; try<br
/> &nbsp; &nbsp; &nbsp; &nbsp; if (selection is not 0) then<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set defaultTag to &quot;Email Message&quot;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set userInput to ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text returned of ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (display dialog &quot;Enter Tags, separated by colons or commas:&quot; &amp;amp; return &amp;amp; return &amp;amp; ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;NOTE: Default Tag is 'Email Message'&quot; default answer defaultTag)<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set theDelims to {&quot;:&quot;, &quot;,&quot;}<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set EVTag to my Tag_List(userInput, theDelims)<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set theMessages to current messages<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set EVnotebook to my Notebook_List()<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; repeat with thisMessage in theMessages<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set myTitle to the subject of thisMessage<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set myContent to the content of thisMessage<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set myContent to do shell script &quot;echo &quot; &amp; quoted form of myContent &amp; &quot; | sed 's/\\&lt;[^&lt;]*\\/\\&gt;//g'&quot;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set ReplyAddr to the sender's address of thisMessage<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set EmailDate to the time received of thisMessage<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set myText to &quot;Message from mailto:&quot; &amp;amp; ReplyAddr &amp;amp; &quot; on &quot; &amp;amp; EmailDate &amp;amp; &quot;:&quot; &amp;amp; return &amp;amp; return &amp;amp; myContent<br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tell application &quot;Evernote&quot;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set n to create note with text myText ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; title myTitle ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; notebook ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EVnotebook tags EVTag<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set creation date of n to EmailDate<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set source URL of n to ReplyAddr<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end tell<br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set theAttachments to the attachments of thisMessage<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; repeat with thisAttachment in theAttachments<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set theName to name of thisAttachment<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set FilePath to TmpFolder &amp;amp; theName<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; save thisAttachment in FilePath<br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tell application &quot;Evernote&quot;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set n to create note from file FilePath ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; notebook EVnotebook tags EVTag<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set creation date of n to EmailDate<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set source URL of n to ReplyAddr<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end tell<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tell application &quot;Finder&quot;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delete file FilePath<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end tell<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end repeat<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set successCount to successCount + 1<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end repeat<br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if &quot;GrowlHelperApp&quot; is in processnames then<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tell application &quot;GrowlHelperApp&quot; -- GROWL SUCCESS<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; notify with name ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Success Notification&quot; title ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Import Success&quot; description &quot;Successfully Exported &quot; &amp;amp; successCount &amp;amp; ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot; Messages to Evernote!&quot; application name &quot;Entourage to Evernote&quot;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end tell<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set successCount to 0<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; else if &quot;GrowlHelperApp&quot; is in processnames then<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tell application &quot;GrowlHelperApp&quot; -- GROWL FAILURE FOR NO SELECTION<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; notify with name ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Failure Notification&quot; title ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Import Failure&quot; description ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;No headline or tab selected!&quot; application name &quot;Entourage to Evernote&quot;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end tell<br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; else if &quot;GrowlHelperApp&quot; is not in processnames then -- NON-GROWL ERROR MSG. FOR NO SELECTION<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display dialog &quot;No headline or tab selected!&quot; with icon 0<br
/> &nbsp; &nbsp; &nbsp; &nbsp; end if<br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; (* ERROR HANDLING *)<br
/> &nbsp; &nbsp; on error errText number errNum<br
/> &nbsp; &nbsp; &nbsp; &nbsp; if &quot;GrowlHelperApp&quot; is in processnames then<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tell application &quot;GrowlHelperApp&quot; -- GROWL FAILURE FOR ERROR<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; notify with name ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Failure Notification&quot; title ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Import Failure&quot; description &quot;Failed to export &quot; &amp;amp; return &amp;amp; myTitle &amp;amp; ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;\&quot; &nbsp;due to the following error: &quot; &amp;amp; return &amp;amp; errText ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; application name &quot;Entourage to Evernote&quot;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end tell<br
/> &nbsp; &nbsp; &nbsp; &nbsp; else if &quot;GrowlHelperApp&quot; is not in processnames then -- NON-GROWL ERROR MSG. FOR ERROR<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; display dialog &quot;Item Failed to Import: &quot; &amp;amp; errNum &amp;amp; return &amp;amp; errText with icon 0<br
/> &nbsp; &nbsp; &nbsp; &nbsp; end if<br
/> &nbsp; &nbsp; end try<br
/> end tell<br
/> <br
/> (* SUBROUTINES *)<br
/> --TAG SELECTION SUBROUTINE<br
/> on Tag_List(userInput, theDelims)<br
/> &nbsp; &nbsp; set oldDelims to AppleScript's text item delimiters<br
/> &nbsp; &nbsp; set theList to {userInput}<br
/> &nbsp; &nbsp; repeat with aDelim in theDelims<br
/> &nbsp; &nbsp; &nbsp; &nbsp; set AppleScript's text item delimiters to aDelim<br
/> &nbsp; &nbsp; &nbsp; &nbsp; set newList to {}<br
/> &nbsp; &nbsp; &nbsp; &nbsp; repeat with anItem in theList<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set newList to newList &amp;amp; text items of anItem<br
/> &nbsp; &nbsp; &nbsp; &nbsp; end repeat<br
/> &nbsp; &nbsp; &nbsp; &nbsp; set theList to newList<br
/> &nbsp; &nbsp; end repeat<br
/> &nbsp; &nbsp; return theList<br
/> &nbsp; &nbsp; set AppleScript's text item delimiters to oldDelims<br
/> end Tag_List<br
/> <br
/> --EVERNOTE NOTEBOOK SELECTION SUBROUTINE<br
/> on Notebook_List()<br
/> &nbsp; &nbsp; tell application &quot;Evernote&quot;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; activate<br
/> &nbsp; &nbsp; &nbsp; &nbsp; set listOfNotebooks to {} (*PREPARE TO GET EVERNOTE'S LIST OF NOTEBOOKS *)<br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; (*GET THE NOTEBOOK LIST *)<br
/> &nbsp; &nbsp; &nbsp; &nbsp; set EVNotebooks to every notebook<br
/> &nbsp; &nbsp; &nbsp; &nbsp; repeat with currentNotebook in EVNotebooks<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set currentNotebookName to (the name of currentNotebook)<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; copy currentNotebookName to the end of listOfNotebooks<br
/> &nbsp; &nbsp; &nbsp; &nbsp; end repeat<br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; (*SORT THE LIST *)<br
/> &nbsp; &nbsp; &nbsp; &nbsp; set Folders_sorted to my simple_sort(listOfNotebooks)<br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; (*USER SELECTION FROM NOTEBOOK LIST *)<br
/> &nbsp; &nbsp; &nbsp; &nbsp; set SelNotebook to choose from list of Folders_sorted with title &quot;Select Evernote Notebook&quot; with prompt ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Current Evernote Notebooks&quot; OK button name &quot;OK&quot; cancel button name &quot;New Notebook&quot;<br
/> <br
/> &nbsp; &nbsp; &nbsp; &nbsp; if (SelNotebook is false) then (*CREATE NEW NOTEBOOK OPTION *)<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set userInput to ¬<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text returned of (display dialog &quot;Enter New Notebook Name:&quot; default answer &quot;&quot;)<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set EVnotebook to userInput<br
/> &nbsp; &nbsp; &nbsp; &nbsp; else<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set EVnotebook to item 1 of SelNotebook<br
/> &nbsp; &nbsp; &nbsp; &nbsp; end if<br
/> <br
/> &nbsp; &nbsp; end tell<br
/> end Notebook_List<br
/> <br
/> --SORT SUBROUTINE<br
/> on simple_sort(my_list)<br
/> &nbsp; &nbsp; set the index_list to {}<br
/> &nbsp; &nbsp; set the sorted_list to {}<br
/> &nbsp; &nbsp; repeat (the number of items in my_list) times<br
/> &nbsp; &nbsp; &nbsp; &nbsp; set the low_item to &quot;&quot;<br
/> &nbsp; &nbsp; &nbsp; &nbsp; repeat with i from 1 to (number of items in my_list)<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if i is not in the index_list then<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set this_item to item i of my_list as text<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if the low_item is &quot;&quot; then<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set the low_item to this_item<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set the low_item_index to i<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if this_item comes before the low_item then<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set the low_item to this_item<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set the low_item_index to i<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br
/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if<br
/> &nbsp; &nbsp; &nbsp; &nbsp; end repeat<br
/> &nbsp; &nbsp; &nbsp; &nbsp; set the end of sorted_list to the low_item<br
/> &nbsp; &nbsp; &nbsp; &nbsp; set the end of the index_list to the low_item_index<br
/> &nbsp; &nbsp; end repeat</div></div> ]]></content:encoded> </item> <item><title>By: Justin</title><link>http://veritrope.com/tech/entourage-to-evernote/#comment-123</link> <dc:creator>Justin</dc:creator> <pubDate>Tue, 17 Nov 2009 18:56:10 +0000</pubDate> <guid
isPermaLink="false">http://veritrope.com/?p=1148#comment-123</guid> <description>Yeah -- My guess is that the &quot;text parser&quot; chokes on anything that looks like XML/HTML while creating the note.
However, it works fine if you create the note using &lt;i&gt;HTML&lt;/i&gt;.  Here is a version of your sample code that does this (modified to be valid HTML):
&lt;code&gt;
set myContent to &quot;&lt;a href=\&quot;http://veritrope.com/\&quot;&gt;Veritrope.com&lt;/a&gt;&quot;
tell application &quot;Evernote&quot;
set n to create note with html myContent
end tell
&lt;/code&gt;
The note is successfully created with a clickable URL in the body.
I&#039;ve run into this type of problem with the &lt;i&gt;titles of the notes&lt;/i&gt; and put in some code that stripped-out some troublesome typography.   Clearly though, this isn&#039;t as workable of a solution for the note body -- an AppleScript like this shouldn&#039;t modify people&#039;s content, in my opinion.
I have some ideas to work-around but, really, I&#039;d like to get some sense from the Evernote development team if some changes/bug fixes are coming in the near future.  Let&#039;s be sure to ask about it in &lt;a href=&quot;http://bit.ly/4hZjVU&quot; rel=&quot;nofollow&quot;&gt;the AppleScript thread there&lt;/a&gt;.</description> <content:encoded><![CDATA[<p>Yeah &#8212; My guess is that the &#8220;text parser&#8221; chokes on anything that looks like XML/HTML while creating the note.</p><p>However, it works fine if you create the note using <i>HTML</i>.  Here is a version of your sample code that does this (modified to be valid HTML):</p><div
class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">set myContent to &quot;&lt;a href=\&quot;http://veritrope.com/\&quot;&gt;Veritrope.com&lt;/a&gt;&quot;<br
/> tell application &quot;Evernote&quot;<br
/> &nbsp; &nbsp; set n to create note with html myContent<br
/> end tell</div></div><p>The note is successfully created with a clickable URL in the body.</p><p>I&#8217;ve run into this type of problem with the <i>titles of the notes</i> and put in some code that stripped-out some troublesome typography.   Clearly though, this isn&#8217;t as workable of a solution for the note body &#8212; an AppleScript like this shouldn&#8217;t modify people&#8217;s content, in my opinion.</p><p>I have some ideas to work-around but, really, I&#8217;d like to get some sense from the Evernote development team if some changes/bug fixes are coming in the near future.  Let&#8217;s be sure to ask about it in <a
target="_blank" href="http://bit.ly/4hZjVU"  rel="nofollow">the AppleScript thread there</a>.</p> ]]></content:encoded> </item> <item><title>By: Pete</title><link>http://veritrope.com/tech/entourage-to-evernote/#comment-122</link> <dc:creator>Pete</dc:creator> <pubDate>Tue, 17 Nov 2009 17:45:37 +0000</pubDate> <guid
isPermaLink="false">http://veritrope.com/?p=1148#comment-122</guid> <description>Btw. I&#039;ve ran into the same error message rob cherny mentioned on a few emails.
I&#039;ve tracked it down to:
&lt;code&gt;set myContent to &quot;&lt;http://veritrope.com/&gt;&quot;
tell application &quot;Evernote&quot;
set n to create note with text myContent
end tell&lt;/code&gt;
Tried to find, what combination of slash and greater/lesser triggers the error in Evernote, but  didn&#039;t find a logic.
Post as well on Evernote forum, probably some developers have a clue.</description> <content:encoded><![CDATA[<p>Btw. I&#8217;ve ran into the same error message rob cherny mentioned on a few emails.</p><p>I&#8217;ve tracked it down to:</p><div
class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">set myContent to &quot;&lt;http://veritrope.com/&gt;&quot;<br
/> tell application &quot;Evernote&quot;<br
/> &nbsp; &nbsp; set n to create note with text myContent<br
/> end tell</div></div><p>Tried to find, what combination of slash and greater/lesser triggers the error in Evernote, but  didn&#8217;t find a logic.</p><p>Post as well on Evernote forum, probably some developers have a clue.</p> ]]></content:encoded> </item> </channel> </rss>
