This content has been marked as final.
Show 3 replies
-
1. Re: Exporting Multiple PDFs From A Single INDD Document
Jump_Over Nov 20, 2013 2:40 PM (in response to hank_patton)hank_patton wrote:
...
I am trying to write a script...
...
Here you are trying to apply a name to exported file.
myDoc.exportFile(ExportFormat.pdfType, File(Folder.desktop + "/ExportPDFWithPreset.pdf"),false, myPDFExportPreset);
Here is your doc name:
myDoc.name.replace(".indd","");Keep trying
Jarek
-
2. Re: Exporting Multiple PDFs From A Single INDD Document
Laubender Nov 20, 2013 11:44 PM (in response to Jump_Over)@Jarek – my suggestion to the string that includes the file name without suffix:
var myString = myDoc.name.replace(/\.indd$/i,"");
Just to be save. You never know… ;-)
@Hank – that Regular Expression will only look at the end of the actual name of "myDoc" (the "$" will do that) and will replace ".indd" with an empty string (= deletes it). The parameter "i" is for case insensitive: Strange cases like ".INDD", ".iNdD" etc. are covered.
Uwe
-
3. Re: Exporting Multiple PDFs From A Single INDD Document
cdflash Nov 24, 2013 5:36 AM (in response to Laubender)@hank:
have an applescript that sounds like something you're after:


