Copy link to clipboard
Copied
I am writing a UXP script that grabs INDD files in bulk and makes some changes in the file and saves off the file to a different file location. I do not want to impact the original file. Instead, I want to save it as a new file in a new location. Does anyone know if this is possible in UXP scripting? I know you can export to PDF, which I have done before. But is it possible to export from one indd to another indd in a different location?
You can save a document using a different name. Use activeDocument.save (newfilename)
You will want activeDocument.save(File to, Boolean stationery, String versionComments, Boolean forceSave).
Copy link to clipboard
Copied
You can save a document using a different name. Use activeDocument.save (newfilename)
Copy link to clipboard
Copied
You will want activeDocument.save(File to, Boolean stationery, String versionComments, Boolean forceSave).
Copy link to clipboard
Copied
Awesome, thanks for the guidance.
Copy link to clipboard
Copied
Awesome, thanks for the guidance. One follow up, should I add the name of the new file as part of the file path in the to parameter?
By @MahmoodTheDoom
You should supply path and full name.
Copy link to clipboard
Copied
As others pointed out - you SAVE in native format of the application - you EXPORT to other formats.
Copy link to clipboard
Copied
Thanks, that makes sense 🙂