I have created one dialog with button and progress bar. When I click on button, I have functionality which is getting called through which I make some changes in currently open Indesign document like drawing some graphic frames, placing images on them. I want to update progress bar present on dialog when frames are getting drawn. But the dialog box freezes when the document changes taking place. How to update progress bar?
Thanks in advance.
it is not possible to have a progress bar working with dialogs. You can use palettes and windows but not dialogs. If you like to better understand how progress bars work, this is a very good resource:
It appear that every InDesign remember any previous state of this setting: app.scriptPreferences.enableRedraw
I have two computers – on one progressbar works properly, on second doesn't.
So if your Progress bar doesn't work properly, try add following line at the begining of script (into main() function):
app.scriptPreferences.enableRedraw = true;