Created
October 20, 2019 18:57
-
-
Save basketofsoftkittens/5c2d5eb720b4283645e38429d5a3d3b6 to your computer and use it in GitHub Desktop.
Import your macOS notes app notes into evernote
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
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