Jump to content

ENnut

Level 2
  • Posts

    59
  • Joined

  • Last visited

About ENnut

ENnut's Achievements

26

Reputation

  1. Are your data files here? /Users/myusername/Library/Application Support/com.evernote.Evernote Seems weird that the external-edits folder isn't in the main data folder anymore.
  2. I'm using the direct version. My external-edits folder used to be here (last modification in that folder was in Sept 2017): /Users/myusername/Library/Application Support/com.evernote.Evernote/accounts/www.evernote.com/13570/external-edits ...but there's a new one here (files no older than Jan 2018): /Users/myusername/Documents/.evernote/13570-personal-www.evernote.com/external-edits Anyone know what's going on here? TIA
  3. Made a few improvements to make this script a little friendlier: • Now confirms that the backup folder path you entered is valid. If it's not valid, you get a notification. • Now starts the backup faster than previous versions • Added confirmation dialog on completion with button to view backup folder Be sure to set your backup path on line 3. (Here's my Alfred workflow for this script http://cl.ly/2N3b3D081j1V ) with timeout of (30 * 60) seconds tell application "Finder" set setBackupfolder to "/Users/USERNAME/Desktop/SOMEFOLDER/" as POSIX file -- set backup folder path -- confirm valid path exists if setBackupfolder exists then else display dialog "The backup path you set does not exist. Please go to line 3, set a valid path and re-run this script." giving up after 99999999 error number -128 end if set backupFolder to setBackupfolder as text end tell -- activate evernote tell application "Evernote" activate -- wait for evernote to come to the front tell application "Finder" set frontAppname to "whatever" repeat while frontAppname is not "Evernote" tell application "System Events" to set frontAppname to name of first process where frontmost is true end repeat delay 1 -- wait a little more end tell -- do the backup set allNotebooks to every notebook repeat with currentNotebook in allNotebooks set notebookName to (the name of currentNotebook) set allNotes to every note in notebook notebookName if every note in notebook notebookName exists then -- proceed if notebook is not empty set dateString to (current date) as text -- get the date set newDatestring to {} repeat with i in dateString -- change colon in time stamp (changed to slash in Finder) to underscore if (i as string) is ":" then set end of newDatestring to "_" else set end of newDatestring to (i as string) end if end repeat set exportFilename to (backupFolder & notebookName & " - Backed up on " & newDatestring & ".enex") export allNotes to exportFilename end if end repeat -- confirmation dialog display dialog "The backup of your Evernote notebooks is complete." buttons {"View Backup Folder", "OK"} default button 2 giving up after 99999999 if the button returned of the result is "View Backup Folder" then tell application "Finder" activate open backupFolder end tell end if end tell end timeout
  4. I've made some changes to the script. Among them: • Now will NOT attempt to back up an empty notebook • Now appends the notebook name with date/time stamp with timeout of (30 * 60) seconds tell application "Evernote" activate set backupFolder to "/Users/USERNAME/Desktop/EvernoteBackup/" -- path to backup folder delay 7 -- need some time for EN to launch if it's not already running. Adjust as needed. set allNotebooks to every notebook repeat with currentNoteBook in allNotebooks set notebookName to (the name of currentNoteBook) set allNotes to every note in notebook notebookName if every note in notebook notebookName exists then -- proceed if notebook is not empty set dateString to (current date) as text -- get the date set newDatestring to {} repeat with i in dateString -- change colon in time stamp (changed to slash in Finder) to dash if (i as string) is ":" then set end of newDatestring to "-" else set end of newDatestring to (i as string) end if end repeat set exportFilename to (backupFolder & notebookName & "-" & newDatestring & ".enex") export allNotes to exportFilename end if end repeat end tell end timeout
  5. @JMichael, Export includes tags by default. Please post here whether or not the script works for you; you're on Yosemite, right?
  6. Here's an Applescript you can use to back up all your notes into individual .enex notebook files. Only have 6.0.5 Direct Download version, so I can confirm that it works on that version (both on Yosemite and Mavericks). Be sure to set your osx username and that you set a valid path. with timeout of (30 * 60) seconds tell application "Evernote" activate set myFolder to "/Users/USERNAME/Desktop/EvernoteBackup/" -- path to backup folder delay 7 -- need some time for EN to launch if it's not already running. Raise number if needed. set myNotebooks to every notebook repeat with selectedNoteBook in myNotebooks set theNotebook to (the name of selectedNoteBook) set theNotes to every note in notebook theNotebook set myFile to (myFolder & theNotebook & ".enex") export theNotes to myFile end repeat end tell end timeout
  7. Great tip Frank! Not only can I set the reminder for gmails via the webclipper, I can do it with a clip from any site. Don't know how I never noticed the reminder icon.
  8. In Mac EN 5.6.1, you can use shift-cmd-| (shift-cmd-pipe) to move the focus to the list.
  9. Sorry if this has been posted before, but I have been using this to scale down big images in EN notes: http://www.tuaw.com/2013/01/28/applescripting-evernote-embedded-image-scaler/
×
×
  • Create New...