问题 In my script for Photoshop CC 2015 (Windows 10), written in JavaScript, I am processing all layers of the active document in a loop and want to show a setup dialog in each step. For simplification, take the following working example. The window is defined outside the loop, and among other steps which are stripped here, the window is shown once every step in the loop: #target photoshop var w = new Window('dialog', 'Title'); var b = w.add('button', undefined, 'OK'); for (var i = 0; i < 3; i++)