Skip to content

Instantly share code, notes, and snippets.

@jasonian
Created April 9, 2013 00:11
Show Gist options
  • Save jasonian/5341775 to your computer and use it in GitHub Desktop.
Save jasonian/5341775 to your computer and use it in GitHub Desktop.
Copy notes from Apple Notes app to Evernote. No error checking, written for a one-time import. Worked perfectly for my needs.
tell application "Notes"
set theMessages to every note
repeat with thisMessage in theMessages
set theNoteName to name of thisMessage
set theNoteBody to the body of thisMessage
set theNoteCreationDate to the creation date of thisMessage
set theNoteModificationDate to the modification date of thisMessage
tell application "Evernote"
create note with html theNoteBody title theNoteName notebook "Imported Notes" tags "imported_note" created theNoteCreationDate
end tell
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment