├── EvernoteBackup.scpt ├── README.md └── license.txt /EvernoteBackup.scpt: -------------------------------------------------------------------------------- 1 | -- PURPOSE: Export all notes in Evernote to an ENEX file so that 2 | -- the notes can be backed up to an external drive or to the cloud 3 | 4 | -- Change the path below to the location you want the notes to be exported 5 | set f to "/Volumes/My Book/Data/Backup/Export.enex" 6 | 7 | with timeout of (30 * 60) seconds 8 | tell application "Evernote" 9 | -- Set date to 1990 so it finds all notes 10 | set matches to find notes "created:19900101" 11 | -- export to file set above 12 | export matches to f 13 | end tell 14 | end timeout 15 | 16 | -- Compress the file so that there is less to backup to the cloud 17 | set p to POSIX path of f 18 | do shell script "/usr/bin/gzip " & quoted form of p -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | evernote-backup 2 | =============== 3 | 4 | An AppleScript to backup Evernote data 5 | 6 | Please note: For this script to work properly, you must use the version of Evernote [downloaded from the Evernote website](https://evernote.com/download/). The version of Evernote from the app store will not work correctly with this script because of the way the app is sandboxed. 7 | -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Jamie Todd Rubin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | --------------------------------------------------------------------------------