Did you ever figure out how to resolve your issues?
This sounds related to the problem I described here
I’m not opening background documents or anything. I’m attempting to modify elements that trigger my doc-updater script using a pushbutton script. I would expect the updater to fully execute within the transaction of my running script to update the parameters and not continue after the transaction has closed, yet it appears to hijack my output window that is not created or shown until after the transaction is closed.
edit: just realized you are talking about doc-changed.py, but I’m using doc-updater.py. still sounds like similar issue though