Photoshop OS X: app.refresh() in script sometimes cause Photoshop to crash

  • 1
  • Problem
  • Updated 5 years ago
When I run this script, type something, and press enter/return, Photoshop often crashes. Sometimes it takes a couple of tries for it to crash PS. It doesn't crash on Windows.



#target photoshop
var w = new Window ("dialog");
var e = w.add ("edittext");
e.active = true;
e.characters = 20;

e.onChange = function () {

//Do stuff here

app.refresh();
}

w.show ();



Is there a workaround I can use and still have the user press enter/return to do something when editing a text field?
Photo of David Jensen

David Jensen

  • 131 Posts
  • 46 Reply Likes

Posted 5 years ago

  • 1
Photo of Adam Jerugim

Adam Jerugim, Employee

  • 196 Posts
  • 85 Reply Likes
I can reproduce it here using your script on Mac. Thanks for letting us know about it and I'll see what we can do about getting it fixed.