As the title says we were discussing scripting processes and we noticed this has not been asked nor do I know if it can be done. Can you create an InDesign script that will take all .indd files and print/export them to .pdf?

1 Answer 1


Page 44 of the cs5 indesign scripting guide has code samples for exporting PDF files. One only need provide code to open and close the required files. The easy way is to pipe or provide a file list, the less easy way is to enumerate the indd files (or shortcuts to randomly scattered files) in a folder and then open and export each in turn.

var myPDFExportPreset = app.pdfExportPresets.item("prepress");
app.activeDocument.exportFile(ExportFormat.pdfType, File("/c/myTestDocument.pdf"),
false, myPDFExportPreset);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.