The script uses a beforeQuit event handler to copy InDesign libraries from one folder to another. Some of the libraries are large and the process takes a while.
I would like to display a progress bar so that users know that their PCs haven't frozen up. But it only flashes into view briefly. Then the InDesign window closes, but the file-copying is still taking place.
Is there some way to delay the actual quit event until the beforeQuit function has finished? Or maybe what I need is a way to display the progress bar that isn't dependent on InDesign.