Automating Highlight Extraction from Multiple Documents in DEVONthink Pro

Hello everyone,

I’m looking for a way to automate the extraction of highlights from multiple documents in DEVONthink Pro and consolidate them into a single document. Ideally, the resulting document should include the title of each source document before its respective highlights.

Currently, I’m aware of the “Summarize Highlights” feature, but as far as I know, it only works on one document at a time. Manually summarizing highlights for each document and merging them is quite time-consuming, so I’m wondering if there is a way to automate this process.

Here’s what I would like to achieve:

  1. Iterate through all documents in a selected group.
  2. Extract all highlighted text from each document.
  3. Prepend the document title to its extracted highlights.
  4. Merge all extracted highlights into a single document.

Has anyone implemented something similar using AppleScript, Automator, or any other method? I’d really appreciate any insights, example scripts, or workflows that could help accomplish this efficiently.

Thanks in advance for your help!

Tools > Summarize Annotations supports multiple selected documents.

2 Likes

Menus > The Tools Menu in the built-in Help and manual

Thank you to both of you! I search for an answer but somehow missed this.:confounded: And how nice that you answer so quickly!:pray::pray::smile:

You’re welcome :slight_smile:

1 Like

This is very close to what I’m trying to achieve. Is there a way to have it extract specific highlight colors?

As I mentioned on your other post, no.

I have a similar requirement, with item 3 (Prepend the document title) including a hyperlink back to the original document and text

>automate the extraction
I use an Applescript that takes selected text and creates separate/individual sub-notes
These sub-notes are then linked via tags and can be merged into a single document