Appending text from draft to a current Devonthink note?

In fact, Drafts provides shell functionality like described here:

So it would be possible to write a script (AppleScript or JavaScript) that could

  • retrieve the current Drafts document’s content
  • get the list of groups from DT
  • present that list to the user to select from
  • get the list of records from that group
  • present that list to the user to select from
  • append the Drafts document to the selected record

Give that script the appropriate she-bang line and Drafts should be able to run it.

While it’s feasible, I’m wondering if it’s worth the effort. How often do you need this functionality, and why do you need it in the first place instead of simply editing the record directly in DT?