Skip to content

Instantly share code, notes, and snippets.

@adeolaawoyemi
Created September 26, 2018 08:47
Show Gist options
  • Save adeolaawoyemi/6df28a21834f6583b8f3b0eff1997ca0 to your computer and use it in GitHub Desktop.
Save adeolaawoyemi/6df28a21834f6583b8f3b0eff1997ca0 to your computer and use it in GitHub Desktop.
AppleScript to migrate from Apple 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 "Apple Notes" tags ["Apple Notes"]
set the HTML content of myNote to myText
set the creation date of myNote to myCreateDate
set the modification date of myNote to myModDate
end tell
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment