Best way to process Global Inbox?

In addition to Jim’s reply, see

which explains a script that is included with DEVONthink, but needs to first be installed and configured.