Call InDesign to Disable Redraw

How do you call out InDesign CS4 to disable the screen redraw during execution of a script?
And will this help the speed of a script running?

Thanks!

set enable screen redraw of script preferences to false

Usually. Is the script saved as an app?

Thank you very much!

the actual wording you need is this:

set enable redraw of script preferences to false

But it works fine and makes the script run much faster.

If I recall correctly the best way to boost the speed is to open the file without a window showing. After the script is done I believe you can show the window, see the “Speed” entry at this link:http://www.scriptingmatters.com/indesigncs_changes.php