Someone would have a script that export the InDesign file in pdf open but in the same folder as the document original?
Thanks for your help!
this is my code:
var myFilePath;
var myFile;
var allDocs = app.documents;
var myDoc;
if (app.documents.length == 0) {
alert(“Il ni a aucun document ouvert”);
exit();
}
for (var i = 0; i < allDocs.length; i++) {
myDoc = allDocs[i];
//I want to change this bellow code
var myFilePath = “/Volumes/Travaux/Travaux_Studio/Sidlee/Sidlee New York/FOREVERMARK/Y100166A_OOH/Worfiles/Y100166A_Philadelphia_OOH/Philadelphia_Station/¬PhiladelphiaStation_Domination_Resume/” + myDoc.name.replace(/indd$/, “pdf”);
var myFile = new File(myFilePath);
myDoc.exportFile(ExportFormat.pdfType, myFile, false, “LR-Bleed-Crops-Slug”);
}
while (app.documents.length > 0) {
app.activeDocument.close(SaveOptions.yes);
}