Jump to content

Applescript, Automator Action or Keyboard Maestro action to pick and export a single note


Recommended Posts

  • Level 5*
34 minutes ago, deh0314 said:

Applescript, Automator Action or Keyboard Maestro action to pick and export a single note

I'm an Evernote Legacy user.
Here's a sample Applescript

tell application "Evernote"
     
set fileBackup to "/Users/DTLow/Desktop/test"    << replace with your filename
     
set fileBackup to POSIX path of fileBackup
     
set theNotes to get selection
     
export theNotes to fileBackup format HTML
end tell

Link to comment
  • Level 5*
18 minutes ago, deh0314 said:

When I try to compile this script I get an error. (screenshot attached)

It happens on the third line with "theNote"

I edited the post and replaced the script with a clearer example

Link to comment

A continued Thanks for your help. The script compiled. I clipped a new page and ran the script. The results were not as expected. Might this be possible because I have Evernote 7.14? I'm pretty certain I can grab an older copy of EN from a backup.

Link to comment

OK. So in your script, I changed "export theNotes to fileBackup format HTML" to "export theNotes to fileBackup format ENEX" 

And in "set fileBackup to "/Users/DTLow/Desktop/test" I changed test to Newest-Note.enex. That makes it so I can import that to Apple Notes.

One last question (I hope🌞) what would I have to do so the file-name.enex was today's date & time instead of Newest-Note?

Link to comment

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...