Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgreiner/af8b4e453f6dac8e93fb to your computer and use it in GitHub Desktop.
Save mgreiner/af8b4e453f6dac8e93fb to your computer and use it in GitHub Desktop.
tell application "Notes"
repeat with thisAccount in accounts
repeat with thisFolder in folders of thisAccount
repeat with thisNote in notes of thisFolder
set myTitle to the name of thisNote
set myText to the body of thisNote
set myCreateDate to the creation date of thisNote
set myModDate to the modification date of thisNote
tell application "Evernote"
set importedNote to create note with html myText Â
title myTitle Â
created myCreateDate Â
notebook "Imported Notes"
set modification date of importedNote 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