Created
July 1, 2016 01:02
-
-
Save activescott/bffe5e1850a52768b2c2d34fe40b568b to your computer and use it in GitHub Desktop.
Export All Evernote Notebooks
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
exportEvernote() | |
on exportEvernote() | |
set outputDir to (do shell script "echo ~/Downloads/") | |
set theDate to current date | |
set timeStamp to (do shell script "date +'%y-%m-%d-%T'") | |
tell application "Evernote" | |
repeat with eachNotebook in every notebook of application "Evernote" | |
set notebookName to name of eachNotebook | |
set targetFile to outputDir & "evernote-backup_" & timeStamp & "_" & notebookName & ".enex" | |
set theNotes to every note in eachNotebook | |
log "Exporting " & notebookName & " to " & targetFile | |
--NOTE: You must use Evernote downloaded from evernote's website. The App Store version won't work with the export command. | |
export theNotes to targetFile | |
end repeat | |
end tell | |
display dialog "All notebooks exported to " & outputDir | |
end exportEvernote | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Then you can import the notes into Apple's Notes.app as described at http://iphone.appleinsider.com/articles/16/02/08/notes-for-mac-to-support-evernote-file-imports-in-os-x-10114