Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ohmyhusky/e1ba6c860d8306efb076357fb8de5826 to your computer and use it in GitHub Desktop.
Save ohmyhusky/e1ba6c860d8306efb076357fb8de5826 to your computer and use it in GitHub Desktop.
Updated to import the modification date as well since that's how notes are sorted in Note.app
tell application "Notes"
set theNotes to every note of the folder "Notes"
repeat with thisNote in theNotes
set myTitle to the name of thisNote
set myText to the body of thisNote
set myCreateDate to the creation date of thisNote
set myUpdateDate to the modification date of thisNote
tell application "Evernote"
set theTransferredNote to create note with html myText ¬
title myTitle ¬
created myCreateDate ¬
notebook "Imported Notes"
set modification date of theTransferredNote to myUpdateDate
end tell
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment