I’m playing with the nounList function to auto-create links between the annotations I imported.
The function to explode the nodes (using the DT example) creates a list of nouns for each note (see my post before).
A new function creates links between all notes that share one of those nouns.
function doSetDTLinksBetweenNotes_db(theRawNoteName,thePathToTheNote) {
var:list theNounsList = collect(children(thePathToTheNote),$DEVONthinkNouns).unique.isort;
var:list theLinkNotes;
var:string targetNote;
var:string sourceNote;
var:number noteCount;
if(theNounsList.count > 0) {
theNounsList.each(singleNoun){
theLinkNotes = collect_if(children(thePathToTheNote),$DEVONthinkNouns.icontains(singleNoun),$Path);
if(theLinkNotes.count >= 2) {
// found at least two notes with the same nouns
noteCount = 0;
theLinkNotes.each(noteToLink){
if(noteCount < 1) {
targetNote = noteToLink;
} else {
sourceNote = noteToLink;
}
createLink(sourceNote, targetNote);
noteCount += 1;
};
};
};
};
};
This will give me a map like this - without a single keystroke - all done by Tinderbox:
Here is a demo - first use the stamp “DoProcessDTHighlights” on the note “DTExport01” and then run the stamp “DoProcessDTLinks” on the note “DTExport01”.
HighlightsDemo.tbx (266.3 KB)