Skip to main content
Known Participant
January 22, 2025
Answered

Process large amount of InDesign docs without pauses

  • January 22, 2025
  • 2 replies
  • 449 views

Does anyone know...

We would like to use Scritping to process a folder of InDesign documents, one by one, and write a report to a text file when done. The problem I'm having is that if the any of the InDesgin documents have broken Graphic Links, the scripts pauses while waiting for user input while opening that particular document. Is there any way to suppress this dialog 'warning' that InDesign throws up so that we can just process all of the documents in the folder without pausing?

Some of the directories we have hold hundreds of documents. I don't want to start the script and have to sit there and hit the return key for nearly every single document.

Thanks in advance.

Correct answer TᴀW

Sure, just add at the beginning of the script:

 

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

 

... just make sure to set it back to INTERACT_WITH_ALL at the end of the process!

 

2 replies

Community Expert
January 23, 2025

Hi @Ken Webster ,

also see into the ExtendScript DOM documentation that was compiled by Gregor Fellenz:

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#ScriptPreference.html

 

Regards,
Uwe Laubender
( Adobe Community Expert )

TᴀW
TᴀWCorrect answer
Legend
January 22, 2025

Sure, just add at the beginning of the script:

 

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

 

... just make sure to set it back to INTERACT_WITH_ALL at the end of the process!

 

Known Participant
January 22, 2025

COOL BEANS!!! Just what I was looking for!

Vielen Dank!

TᴀW
Legend
January 22, 2025

Great, glad it helped. I just edited the last sentence of my reply (INTERACT_WITH_ALL is what you want at the end of the process).