When I do alot of changes (say add a range of pages to a document in a book)
InDeign runs very slowly as it updates the screen and brings up status and progress dialog boxes as each page is added.
Is there a way to programmatically turn off screen updates when InDesign is running a section of script?
Try to set app.scriptPreferences.enableRedraw to false.
I gave that a try. It does not have an effect with my scenario.
The Updating Page & Section Numbers dialog still comes up with a progress bar as it opens, updates and saves each document in my book.