Article View: adobe.scripting.indesign
Article #9080Re: JS Batch converter for CS2
From: feketef
Date: Fri, 15 Sep 2006 00:53
Date: Fri, 15 Sep 2006 00:53
16 lines
1090 bytes
1090 bytes
Dave,
I tried the following script, and it gave me the same.
What I stil doing wrong with it I do not know.
if(app.documents.length != 0){
var myFolder = Folder.selectDialog ("Choose a Folder");
if(myFolder != null){
for(i=app.documents.length-1;i>=0;i--){
myName=app.documents[i].name;
myFile=new File(myFolder+"/"+myName.replace( /\.indd/, '.pdf' ));
app.documents[i].exportFile(ExportFormat.pdfType, myFile, true, "Package");
}
}}
Ferenc
Technical Details
Message-ID:
<3bbf225d.19@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!newsfeed.kamp.net!news.motzarella.org!news.isoc.lu!webcrossingReferences:
<3bbf225d.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,fd17be16b0df5a69 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: feketef@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!newsfeed.kamp.net!news.motzarella.org!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: JS Batch converter for CS2 Message-ID: <3bbf225d.19@webcrossing.la2eafNXanI> Date: Thu, 14 Sep 2006 17:53:11 -0700 References: <3bbf225d.-1@webcrossing.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit