Если вы работаете на Mac, в словаре AppleScript Evernote есть глагол export
, с помощью которого вы можете создать инструмент. Вот несколько не элегантный, но функциональный AppleScript, который сделает то, что вам нужно, просто отредактировав размер пакета, имя записной книжки и путь, по которому вы хотите получить файлы ENEX:
tell application "Evernote"
# Set batch size, notebook to export, and destination path
set batchSize to 500
set theNotebookName to "MyNotebook"
set theExportFolder to "/tmp"
# Enumerate the notes into batches and export them
set theNotebook to the first notebook whose name is theNotebookName
set theNotes to the notes in theNotebook
set currentBatchIndex to 0
set currentNoteIndex to 1
repeat until currentNoteIndex = (count of theNotes)
# Collect up to batchSize notes
set thisExportBatch to {}
repeat until ((count of thisExportBatch) = batchSize or (currentNoteIndex = (count of theNotes)))
set currentItem to theNotes's item currentNoteIndex
set thisExportBatch to thisExportBatch & {currentItem}
set currentNoteIndex to currentNoteIndex + 1
end repeat
# Export this batch. Set the destination path to where you want them.
set exportPath to (theExportFolder & "/" & theNotebookName & currentBatchIndex & ".enex")
export thisExportBatch to exportPath
set currentBatchIndex to (currentBatchIndex + 1)
end repeat
end tell
Я не уверен, что эквивалент будет в Windows, но я ожидаю, что есть какой-то эквивалентный способ его автоматизации.