Keep UI interactive when script running

Is there a way to keep the UI interactive when running a script from the application scripts menu? I want to launch a script, have it do some stuff to an RTF, delay while I do a quick manual edit, then continue processing the RTF. This works fine when I run the script from the AppleScript Editor. But I cannot interact with DEVONthink at all while the script is running if I ran the script from the application scripts menu.

One possibility might be to launch the script via the script menu extra.

Thanks, but I don’t understand what you are referring to.

It’s the script icon (if enabled) in the upper right corner of the menu bar, to the left of the Spotlight icon.