Article View: adobe.scripting.indesign
Article #357Re: Save each page as PDF naming mod
From: really_randy
Date: Wed, 25 Mar 2009 00:56
Date: Wed, 25 Mar 2009 00:56
22 lines
1664 bytes
1664 bytes
well, there would always be something in the jobnumber text field.
Say I had three records in the datamerge file that were say "Avocado", "Burnt Sienna" and "pnga-0431". If I filled the "jobnumber" text field with that information then I should be able save each file with the names "Avocado.jpg", "Burnt Sienna.jpg" and "pnga-0431.jpg" respectively. Is that correct?
Maybe something like this?
+++++++++++++++++++++++++++++++++++++++++++
Labeled textFrame "jobnumber";
Label a textFrame by selecting it in the ui and then use the script palette, label toggle > enter a string such as "jobnumber in the field.
var co = pg[i].textFrames.item("jobnumber").contents;
ad.exportFile(ExportFormat.pdfType, File(docpath+"/"+docname.split(".indd")[0]+"_"+jobnumber+".pdf"), false, myPDFExportPreset);
+++++++++++++++++++++++++++++++++++++++++++
Logically it would go something like this:
myFilename = contents of text box labeled "jobnumber"
Save file as "jpg" with docpath of ("/" + "myFilename" + .jpg)
Does that sound do-able?
Thanks,
Randy
Technical Details
Message-ID:
<59b865f5.3@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b865f5.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,5351a1eac154099d X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: really_randy@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Save each page as PDF naming mod Message-ID: <59b865f5.3@webcrossing.la2eafNXanI> Date: Tue, 24 Mar 2009 17:56:26 -0700 References: <59b865f5.-1@webcrossing.la2eafNXanI> Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit