Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thanks!! and here's a little batch script #1

Open
DustinWehr opened this issue Jan 21, 2017 · 1 comment
Open

thanks!! and here's a little batch script #1

DustinWehr opened this issue Jan 21, 2017 · 1 comment

Comments

@DustinWehr
Copy link

DustinWehr commented Jan 21, 2017

I had a lot of notebooks, so used this applescript to export them all: https://gist.github.com/activescott/bffe5e1850a52768b2c2d34fe40b568b
and then the following script export the notes of each notebook in different folders based on the filename.

#! /usr/bin/env python
import os

# Parameters
output_format = 'markdown'  # or 'text'
strip_this_prefix_from_filenames = "evernote-backup_17-01-21-13/55/07_"
strip_this_suffix_from_filenames = ".enex"
# the new folder name is the filename with the above fixed prefix and suffix stripped


start = len(strip_this_prefix_from_filenames)
end = len(strip_this_suffix_from_filenames)
for dirpath, dirnames, filenames in os.walk("."):
	for name in filenames:
		if name.endswith(".enex"):
			os.system('ever2text "{0}" --output "ever2text_output/{1}" --format {2}'.format(name, name[start:-end], output_format))

If you think it'd be useful enough for the next person who finds your code, I can make a pull request that adds a batch option in core.py, or feel free to do so yourself.

@daghemo
Copy link

daghemo commented Nov 16, 2020

On the Windows client I have "All Notes". This would allow me to select all notes and run "Export note" on them.
I've installed the newer version (i.e. 10) of the client and now "Select All" does not select all the notes, but just some random text in the Evernote window.
No, I'm not happy at all with Evernote. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants