Skip to content

Instantly share code, notes, and snippets.

@coldfire-x
Created December 18, 2016 15:59
Show Gist options
  • Save coldfire-x/e177d7769431a2a646c6849489d0e8e9 to your computer and use it in GitHub Desktop.
Save coldfire-x/e177d7769431a2a646c6849489d0e8e9 to your computer and use it in GitHub Desktop.
apple script to migrate from notes to evernote
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"]
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment