Skip to content

Instantly share code, notes, and snippets.

@jhkchan
Created October 12, 2020 17:06
Show Gist options
  • Select an option

  • Save jhkchan/bb24cd3257f5fc5467aabb7b73beef42 to your computer and use it in GitHub Desktop.

Select an option

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)
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
@CameronBeeler
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment