Skip to main content
Inspiring
June 5, 2019
Answered

How can I refresh the Photoshop UI before displaying an alert()?

  • June 5, 2019
  • 1 reply
  • 1737 views

I have a script that moves the layers on a document to new locations then displays an alert() dialog to remind the user what s/he should do next. The problem is that when the alert() dialog appears the layers appear to be in their old positions. When the user closes the alert() dialog the PS UI immediately refreshes and shows the layers in their new positions. Is there any way to force or allow the PS UI to refresh before I display the alert() dialog? Thanks.

This topic has been closed for replies.
Correct answer JJMack

refresh();

1 reply

JJMack
Community Expert
JJMackCommunity ExpertCorrect answer
Community Expert
June 5, 2019

refresh();

JJMack
BazslAuthor
Inspiring
June 5, 2019

That's what I needed. Thanks.