Update Script Function Dialog like Opus default panes?

When you open the metadata pane and click through the files in a directory, it updates per the context. The viewer does the same. Is there a way to do this with a Script Functions Dialog? I guess that means keeping it open, running its looping construct and updating it per the context. Can this be done? Thanks

WatchTab
There are many script examples in the forum.

Super, I will look them up. Thanks for the help :grinning: