enableRedraw = false ignored during script run
During a loop to load text snippets to my page ID 2020 ignores the fact that enableRedraw=false and DOES redraw the page on every loop
app.scriptPreferences.enableRedraw = false;
do {
app.doScript(insertTexts2, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Insert Texts " + C2Place + ":" + V2Place);
} while (libs[8][3].geometricBounds[0] < pageTextBottom);
app.scriptPreferences.enableRedraw = true;
The text is inserted into 8 different frames -- during the loop it SHOULDN'T redraw the page -- but it does (slowing the script down)
3
votes
Anonymous
shared this idea
-
Bev commented
I agree with Anonymous and wish that enableRedraw (or something similar) would keep ID from updating the screen while a script was running.