Jump to content
muhadi

Save single email to Evernote from Apple Mail

Recommended Posts

I was wondering if there's a way to save single email message as a new note in Evernote?

I encountered some posts about Apple script from @DTLow but I have zero knowledge how it works. My wish is to have a friendly way to save some of my email into Evernote similar to the share sheet in iOS

 

 

Share this post


Link to post

I posted notes on using Applescript at https://discussion.evernote.com/topic/112316-scripting-on-a-mac-applescript/1390648633_ScreenShot2019-10-12at19_02_42.png.359255ec1aaf361812badeb64c05b897.png

You need to decide the design for your note in Evernotespacer.png
The screenshot shows the format I'm using

 

I've attached a barebones script file
MailToEvernote.scpt

 

It uses these code elements

tell application "Mail"                         Interface with the Mail application
     set theMessages to selection                       Retrieve selected email messages
     repeat with theMessage in theMessages   Pass through each email message
          <insert code>                           
     end repeat
end tell

 

tell application "Evernote"                 Interace with the Evernote application
     set theNewNote to create note with text "....."     Create a note
     <insert code>
end tell

 

  • Like 1

Share this post


Link to post

Thanks

I started to get a grab of the scripting. can you share the exact script that you used here for the email so I can adjust it to my liking

Share this post


Link to post

Thanks a lot. The working script will teach me how the flow is going along with the documentation

 

You're a gem. Have a great day

Share this post


Link to post

I ran the exact script and there was a partially successful note but the generated table lacks the pdf & eml files. Am I missing something? like pointing the script to a designated folder

 

while also getting this error

 

 

Screen Shot 2019-10-13 at 4.46.04 AM.png

Share this post


Link to post
18 hours ago, muhadi said:

pdf & eml files ... like pointing the script to a designated folder

   688133011_ScreenShot2019-10-13at10_21_53.png.f2d0b0fea266d5fcde1c86aa7ef40fe1.png

To append these files to a note, they will have to be saved/retrived to a folderspacer.png
I export the files using keyboard shortcuts (command-shift-s, ....)
After doing this manually, the folder location is constant

Here's sample applescript code for applying keyboard shortcuts:
     tell application "System Events" to keystroke "s" using {shift down, command down}
     delay 3
      tell application "System Events" to keystroke return

Then retrieve the files using
      tell application "Finder" to set the_files to name of files of folder POSIX file ("/Users/david/Desktop/...")
 

>>while also getting this error

Did you download Evernote from the app store?  There's reports of sandboxing restrictions

I'm using Evernote downloaded from www.evernote.com/download

  • Like 1

Share this post


Link to post
Just now, DTLow said:

To append these files to a note, they will have to be stored somewhere
I exported the files to /Users/david/Desktop/@Evernote/Evernote_Temp using
set theMessage to item 1 of theMessages
tell application "System Events" to keystroke "s" using {shift down, command down}
delay 3
tell application "System Events" to keystroke return
delay 1
tell application "System Events" to keystroke "p" using {option down, command down}
delay 3
tell application "System Events" to keystroke return
delay 5

Then retrieved the file using
tell application "Finder" to set the_files to name of files of folder POSIX file ("/Users/david/Desktop/@Evernote/Evernote_Temp")

Thanks

Share this post


Link to post
On 10/12/2019 at 8:23 PM, muhadi said:

My wish is to have a friendly way to save some of my email into Evernote

The easiest way is to just forward the Mail Message to your Evernote inbox address.  You can see this address at https://www.evernote.com/Settings.action. It is the "Email Notes to" field.  This ensure you get the rich text formatting of the Message, as well as images and attachments.

  • Like 2

Share this post


Link to post
15 minutes ago, JMichaelTX said:

The easiest way is to just forward the Mail Message to your Evernote inbox address.

Good point; the email feature is a useful service

Downsides are; it's a premium feature, and we have no formatting options
My preference is to archive emails in both .eml and .pdf formats

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...