Created
January 10, 2019 18:14
-
-
Save acrookston/1b584df9cbb127473570f0445cf443d9 to your computer and use it in GitHub Desktop.
Apple Notes to Evernote migration import/export script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Thanks to: https://medium.com/doraoutloud/migrating-your-apple-notes-to-evernote-12114418ba00 | |
# Open "Script Editor" application, paste and run. | |
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 Import"] | |
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