Posted tagged ‘evernote applescript apple notes’

Importing Apple Notes into EverNote

January 19, 2014

I ran across a brilliant post of an AppleScript script that will import your Apple Notes into EverNote – here’s the original post:

http://discussion.evernote.com/topic/4046-importing-from-apple-mailapps-notes/

And here’s the script – just cut and paste this into the Apple Script Editor application:

 

tell application “Notes”

set theMessages to every note

repeat with thisMessage in theMessages

set myTitle to the name of thisMessage

set myText to the body of thisMessage

set myCreateDate to the creation date of thisMessage

set myModDate to the modification date of thisMessage

tell application “Evernote”

set myNote to create note with text myTitle title myTitle notebook “Imported Notes” tags [“imported_from_notes”, “Mavericks”, “Another_Example_Tag”]

set the HTML content of myNote to myText

set the creation date of myNote to myCreateDate

set the modification date of myNote to myCreateDate

end tell

end repeat

end tell

 

Advertisements