You may want to download these example scripts:
There, you'll find e.g. the ExportPDFWithOptions.jsx script.
Is there a way to have this execute on a batch, e.g., convert all the .indd files in a given folder to PDF?
Or script that already does this?
That was brilliant, Peter! Many, many thanks.
(If I only had a similar script to rescue my Adobe FrameMaker files!)