• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Speedup script for Indesign

Enthusiast ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

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

TOPICS
How to , Scripting

Views

776

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 19, 2022 Aug 19, 2022

Download the Setup script by Keith Gilbert at https://gilbertconsulting.com/scripts.
You will find a way to do that inside of it starting at line 304.

Votes

Translate

Translate
Community Expert ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

Download the Setup script by Keith Gilbert at https://gilbertconsulting.com/scripts.
You will find a way to do that inside of it starting at line 304.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

Thank you so much Jean-Claude.

I have downloaded the script.

Regards
Shahid

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

Thanks to Keith Gilbert! 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 19, 2022 Aug 19, 2022

Copy link to clipboard

Copied

Can you send me one of your finished products

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 26, 2022 Aug 26, 2022

Copy link to clipboard

Copied

I am still working on it. I am planning to give it an interface but I have no clue how to start with an Interface.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 20, 2022 Aug 20, 2022

Copy link to clipboard

Copied

Documents process quickly when you don't show them. So close the document and open it without showing:

 

doc = app.documents[0].fullName;
app.documents[0].close(SaveOptions.YES);
doc = app.open (doc, false);
// do your thing, then save and close the doc
app.documents[0].close(SaveOptions.YES);
// and reopen it and show it
doc = app.open (doc, true);

 

P. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 20, 2022 Aug 20, 2022

Copy link to clipboard

Copied

I think the last line should be "true" 😉 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 22, 2022 Aug 22, 2022

Copy link to clipboard

Copied

True! I corrected the sample. Thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 22, 2022 Aug 22, 2022

Copy link to clipboard

Copied

// Open the Layout Window
doc.windows.add();

How about this method?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 26, 2022 Aug 26, 2022

Copy link to clipboard

Copied

LATEST

Hi @琥珀 猫太郎 ,

thanks for this suggestion!

Worked very well.

 

Thanks,
Uwe Laubender
( Adobe Community Professional )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines