I have a script that takes some 5-10 seconds to execute. I'd like to be able to give the user a very clear indication of when it has finished executing.
My idea for achieving this was to make a layer with a big "...working..." sign painted onto it. The script would make this layer visible at the script's beginning, using something like:
app.activeDocument.artLayers.getByName('...working...').visible = 1
then execute the rest of the script, and finally rehide the layer at the very end.
Unfortunately, this doesn't work, because Photoshop doesn't update the status of the layer until the script has completed. The layer is, in theory, 'shown', but is hidden again in an instant, so the user never actually sees it.
Is there a way to display a layer before the script finishes executing?
Or else, can you think of any other way I can visually notify the user as soon as the script is finished, in a frictionless manner that requires no extra effort on the part of the user (ie. not a popup dialog that requires hitting OK)
Thanks in advance.