cmc 0 Posted November 10, 2012 Share Posted November 10, 2012 I'm looking for a way to automatically back up my notes in a format that makes them easy to read if I ever lose access to Evernote. HTML fits the bill perfectly, but I can't find a way to automate the process. I've read some articles about how to use command-line arguments and the Task Scheduler to automatically export from Evernote, but as far as I can tell, the only option is to export to an .enex file. Does anyone know if it's possible to export to an HTML file using the command line? Link to comment
Level 5* jefito 5,598 Posted November 10, 2012 Level 5* Share Posted November 10, 2012 As far as Evernote products go, ENScript exports only to .ENEX format (see the docs here: http://dev.evernote.com/documentation/local/chapters/Windows.php).Perhaps there's a 3rd-party tool you could use, but I don't know of any. Maybe you could use AutoHotKey, or some other automation tool? Link to comment
cmc 0 Posted November 11, 2012 Author Share Posted November 11, 2012 Thanks for the info. I haven't found any useful 3rd party tools either, but I'll look into AutoHotKey.If any of the Evernote staff see this: Is there a reason that ENScript only exports to .enex? Would it be possible to include a feature in future versions that allows users to export to html as well? Link to comment
Level 5 Martin Packer 162 Posted November 11, 2012 Level 5 Share Posted November 11, 2012 Well, I for one wonder about stuff like images. How would those export in a single piece of HTML? (By the way I don't know how they export in ENEX format, which I'm otherwise reasonably familiar with.) Link to comment
Level 5* jefito 5,598 Posted November 12, 2012 Level 5* Share Posted November 12, 2012 Images and other binary content are all encoded into text right in the output .ENEX file. For HTML exports, images are written out to a separate file, and linked to from the HTML. Other binary content like attachments as well, I would expect. Link to comment
kitus 8 Posted August 5, 2013 Share Posted August 5, 2013 Thanks for the info. I haven't found any useful 3rd party tools either, but I'll look into AutoHotKey.If any of the Evernote staff see this: Is there a reason that ENScript only exports to .enex? Would it be possible to include a feature in future versions that allows users to export to html as well?What about Mac users? I'm also looking for a .enex backup tool. Link to comment
anjoschu 67 Posted August 5, 2013 Share Posted August 5, 2013 @kitus: Since this thread was opened (back in 2012), Evernote has introduced HTML backup functionality. In the File>Export notes... dialog, you can chose from Evernote XML File and HTML. When carrying out HTML exports, attachments will be exported as files in the export directory. As far as automating export goes, there are several parts in this:1. triggering the export process2. automating the export process proper3. Taking measures that the exports ultimately gets saved to an external backup location (not your Mac's hard drive) Regarding (1) and (3), I don't really have a one-size-fits-all solution. It too strongly depends on personal preference. I personally would go the following route: Start (1) manually once in a while (not automatically), because the export will take quite a while. And, as for (3), the export would be saved somewhere on my internal hard drive where it automatically gets processed by my regular time machine backups. Regarding (2): You could create an applescript with AppleScript Editor, which you launch every time you want to create a backup. A convenient script for my situation would look like this: set folderName to "Latest Evernote HTML Export"set exportFolder to (path to documents folder as text) & folderName as texttell application "Finder"if exportFolder exists thenset answer to the button returned of (display dialog "This will overwrite the previous Evernote HTML export" buttons {"Stop", "Overwrite"} default button 1)if answer is equal to "Stop" thenerror number -128 -- end script with error "User Cancelled"end ifend ifend tell tell application "Evernote"set allNotes to find notesexport allNotes to exportFolder format HTMLend tell Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.