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.