Skip to main content
Participant
December 6, 2022
Question

Exporting files to same destination as inDesign file

  • December 6, 2022
  • 2 replies
  • 334 views

Hi, is there any way to set from inDesign export to place files in same folder as original file?
It's changed since I upgrade inDesign. It's really annoying, sic!

This topic has been closed for replies.

2 replies

rob day
Community Expert
Community Expert
December 6, 2022

Hi @kate2witch4all , You can force a PDF Export destination via scripting. This skips the Save dialog, shows the Export dialog, and saves the PDF into the InDesign file’s parent directory when you click Export—note that the file has to be saved before you run the script

 

var doc = app.activeDocument;
doc.exportFile(ExportFormat.pdfType, File(doc.filePath + "/" +  doc.name.replace(/\.[^\.]+$/, '') + ".pdf"), true);

 

Steve Werner
Community Expert
Community Expert
December 6, 2022

InDesign (and other Adobe apps) don't have a setting for where to export files. You need to use another method. If you're a Mac user, a good choice is to get the excellent third-part Default Folder utility.