That’s a script that Rob Trew contributed to the forum, maybe six years ago. I just looked into it in Script Debugger and it has all sorts of things broken. It was written against an old version of OmniFocus and an equally old version of DEVONthink. You’d have to tweet Rob (at-complexpoint) and see if he’s willing to fix it. It’s not something DEVONtech would fix.