Photoshop: Script - WaitForRedraw function doesn't work

  • 1
  • Question
  • Updated 4 years ago
  • Answered
  • (Edited)
Hi there,

I am trying to make a 'palette' show and stay visible and I am using a WaitForRedraw function, but it returns that it is not a function. This is what I have:

function WaitForRedraw(){
var eventWait = charIDToTypeID("Wait")
var enumRedrawComplete = charIDToTypeID("RdCm")
var typeState = charIDToTypeID("Stte")
var keyState = charIDToTypeID("Stte")
var desc = new ActionDescriptor()
desc.putEnumerated(keyState, typeState, enumRedrawComplete)
executeAction(eventWait, desc, DialogModes.NO)


What is the problem? Why is it not working?

Photo of Goncalo Espinha

Goncalo Espinha

  • 12 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Tom Ruark

Tom Ruark, Official Rep

  • 27 Posts
  • 12 Reply Likes
Change this line from