Skip to content Skip to sidebar Skip to footer

Photoshop Scriptui: Show A Dialog Window, Close It, Show It Again Gives An Empty Full Size Window

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. Fo

Solution 1:

try this code, it works for me with Photoshop CC + OSX.

w.close() destroy dialog window, so you should create again.

press a button named 'ok', press return key are same as w.close().

#target 'photoshop'for (var i = 0; i < 3; i++) {
  var w = W();
  $.writeln(w.show());
}

functionW () {
  var w = newWindow('dialog', 'Title');
  var b = w.add('button', undefined, 'OK', {name:'ok'});
  return w
}

Post a Comment for "Photoshop Scriptui: Show A Dialog Window, Close It, Show It Again Gives An Empty Full Size Window"