Created
October 12, 2020 17:06
-
-
Save jhkchan/bb24cd3257f5fc5467aabb7b73beef42 to your computer and use it in GitHub Desktop.
Migrating all notes from Apple Notes to Evernote (work with latest macOS Catalina)
This file contains hidden or 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" | |
| launch -- seems to work better than 'activate' | |
| repeat with anAccount in accounts | |
| set accountTitle to the name of anAccount | |
| repeat with aFolder in folders of anAccount | |
| repeat with aNote in notes of aFolder | |
| set myTitle to the name of aNote | |
| set myText to the body of aNote | |
| set myCreateDate to the creation date of aNote | |
| set myModDate to the modification date of aNote | |
| tell application "Evernote" | |
| set myNote to create note with text myTitle title myTitle notebook accountTitle tags [accountTitle] | |
| 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 repeat | |
| end repeat | |
| end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is it true that Evernote v10 does not work with AppleScript? I couldn't get this to work on macOS Ventura, MBP M1ProMax with Evernote v10.52
so hopeful!