Hi All Me again. Sorry.
I'm trying to add a script to indesign - nothing seems to be working and I'm no good at code.
The name I want to call the menu is EXPORT PDF
and the script which finally works is:
d = app.activeDocument;
// Here you can choose the PDF preset
preset1 = app.pdfExportPresets.item ('Print1');
preset2 = app.pdfExportPresets.item ('Lowres');
if (!(preset1.isValid && preset2.isValid)){
alert("One of the presets does not exist. Please check spelling carefully.");
exit();
}
if (d.saved){
thePath = String(d.fullName).replace(/\..+$/, "") + ".pdf";
thePath = String(new File(thePath).saveDlg());
}
else{
thePath = String((new File).saveDlg());
}
thePath = thePath.replace(/\.pdf$/, "");
name1 = thePath + "LR.pdf";
name2 = thePath + "HR.pdf";
d.exportFile(ExportFormat.PDF_TYPE, new File(name1), false, preset1);
d.exportFile(ExportFormat.PDF_TYPE, new File(name2), false, preset2);
Can anyone help with this. The PDF script is located in users but not sure about the beginning bit.
Many thanks
Rahul