Speedup script for Indesign
Hello all,
I have been trying to write a script to speedup Indeisgn 2022. I have finally managed to write the following code:
//Display Performance Settings
//app.activeWindow.viewDisplaySetting=ViewDisplaySettings.TYPICAL; //To make open window display setting TYPICAL
app.displayPerformancePreferences.defaultDisplaySettings = ViewDisplaySettings.TYPICAL;
/* Other Options
ViewDisplaySettings.OPTIMIZED
ViewDisplaySettings.TYPICAL
ViewDisplaySettings.HIGH_QUALITY
*/
//Turn off Live Screen Drawing
app.liveScreenDrawing = LiveDrawingOptions.NEVER;
/*other options are
LiveDrawingOptions.DELAYED
LiveDrawingOptions.IMMEDIATELY
*/
//Turn Off the preflight
app.preflightOptions.preflightOff = false;
//Disable Smart Text Reflow
//var myDoc = app.documents[0]; //working but disabled
//myDoc.textPreferences.smartTextReflow = false; //working but disabled
app.textPreferences.smartTextReflow = false;
//Disable the Pages Thumbnail
app.panels.itemByName("Pages").pagesThumbnails = false;
//Disable save image preview with the file
app.generalPreferences.includePreview = false;
//Find/Check misspelled words and Disable dynamic spell check
app.spellPreferences.checkMisspelledWords = false;
app.spellPreferences.checkRepeatedWords = false;
app.spellPreferences.checkCapitalizedWords = false;
app.spellPreferences.checkCapitalizedSentences = false;
app.spellPreferences.dynamicSpellCheck = false;
//Disable Track Changes
app.trackChangesPreferences.showAddedText = false;
app.trackChangesPreferences.showDeletedText = false;
app.trackChangesPreferences.showMovedText = false;
app.trackChangesPreferences.spellCheckDeletedText = false;
I am missing on one thing i.e HyperLinkStatus Disable. I have no clue how to do it.
Can anyone suggest? Apart from that my code is working but I dont know whether its sufficient or do I need something more in my code. I am in learning phase of Indeisn coding.
Thanks
