I have come across several instances in Windows Photoshop CC 2015 when the palette buttons are unresponsive. The purpose of the palette in this case is to stall the application until a bat script completes while still giving the user the option to "cancel" if necessary. I haven't had any success creating the palette window with and without BridgeTalk(). It almost seems like there is a ScriptUI parenting issue since the entire panel appears to be disabled. Please let me know if anyone has come across this issue or if there's a known workaround. Thanks! Here's an example: Ex) function WinObject() { var windowResource = "palette { orientation: 'column', alignChildren: ['fill', 'top'], preferredSize:[300, 130], text: 'ScriptUI Window - palette', margins:15, bottomGroup: Group{cancelButton: Button { text: 'Cancel', properties:{name:'cancel'}, size: [120,24]}} }"; var win = new Window(windowResource); win.bottomGroup.cancelButton.onClick = function() { scriptRunning = false; win.close() }; var scriptRunning = true; win.show(); while (scriptRunning) { app.refresh(); } win.close(); }; var message = WinObject.toString() + "\nnew WinObject();"; var bt = new BridgeTalk(); bt.target = "photoshop"; bt.body = message; bt.onResult = function(obj) { alert("RECEIVE ON RESULT"); } bt.send(5);
... View more