I have about 300 RTF docs that I have imported into Devonthink. In each file, there is at least one passage (sometimes more) that has been highlighted. At a minimum, I would like DTP to scan these RTF docs and export the highlighted text. Even better, it should include x number of preceding and following words. If I had everything I wanted, it would also append the filename somewhere before or after each quote.
I understand this may not be something that falls within the scope of DTP. If so, pointers to a third-party app (or perhaps Automator?) are welcome, especially if it can handle this sort of batch processing.
Thanks in advance.
EDIT: The highlighted text in most cases has also been added to the “Comment” field in “Document Properties,” so simply exporting this field would be a start.