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

  • 1
  • Problem
  • Updated 6 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"); = true;
e.characters = 20;

e.onChange = function () {

//Do stuff here

} ();

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 6 years ago

  • 1
Photo of Adam Jerugim

Adam Jerugim, Employee

  • 214 Posts
  • 102 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.