Page 1 of 1

Pause an InDesign script

Posted: Wed Apr 01, 2026 4:49 pm
by pfischer
Hello everyone,
I have a question for our script experts.

Is it possible to pause an InDesign script during execution for a defined time before it is processed further? I have tried it with "setTimeout" but did not get any results.

The background is as follows:
We need an InDesign script that keeps an InDesign file open in InDesign for a certain time. During this time, a third-party script in InDesign loads all linked images from an image database into a local directory. When all images have been loaded, the Switch InDesign module starts writing a PDF or simply saves the INDD-file.
I.e. the following steps:
- Open INDD file
- Wait x time (e.g. 10 minutes)
- Export PDF file/save as INDD

Thank you for your support!

Beste Grüße / Kind regards
Peter Fischer