Progress Bar not Updating

Has anyone successfully implemented a progress bar? I can only get the update to happen at the end of the script it seems. No matter where I put the incrementing code. I see the log updates as expected, but no redraw until the script is complete. I’m missing something completely I guess?

It would help to see some code.

Depending on what your code is doing, it’s possible that Ps hasn’t actually had a chance yet to update the UI. If your JS doesn’t yield for a tick or two, the UI won’t have a chance to update.

It’s a problem, see Progress bar for InDesign interactions for a discussion of possible solutions.

Yes, I use it. Have you tried this after you update the value?

// Yield to allow UI updates
await new Promise(resolve => setTimeout(resolve, 0));