Export all the blocks on a page as individual text files

This would be extremely useful for importing them into programs like Scrivener. Thanks.