Hey Bern,
Actually that's probably the easy way to upload stuff, but you can drag and drop items from the Finder into the edit field of the Keyboard Maestro forum.
(I have a couple of macros to export images and .kmmacros files, so I can just drag-and-drop from the Finder — but I've used exactly the method you did above as well.)
--
Not knowing precisely what your script is supposed to do — and not having sample DEVONthink Pro databases in the correct configuration to test with — makes it a bit difficult to figure out, however let's look at the overall problem first.
Keyboard Maestro runs macros sequentially, so KM is waiting for the AppleScript action to be finished before moving on to the next action. This means your macro cannot work as constructed.
What I've done is alter the script so the first dialog is not needed. The entry for it is automatically "1", so the Keyboard Maestro insert text action is not needed. I've also removed some unused code.
Try this edited script, and see if it works.
BernSh ; DEVONthink Pro ; Keyboard Maestro Forum.scpt.zip (21.7 KB)
If it fails then I'll need for you to send me test databases for DEVONthink Pro that illustrate exactly what the script is supposed to do. I have a general idea, but real data samples make this sort of thing so much easier.
-Chris