Article View: adobe.scripting.indesign
Article #9636Re: How to name PDF export using InD current file name?
From: Dave_Saunders
Date: Tue, 15 Aug 2006 18:28
Date: Tue, 15 Aug 2006 18:28
12 lines
993 bytes
993 bytes
What you have looks right except perhaps for the file path. Is that a valid path? I'm a bit hazy on that aspect.
What I normally do is use something like this:
var myFolder= Folder.selectDialog("Locate folder where PDFs should go");
if (myFolder == null) {exit()}
myFile = File(myFolder.absoluteURI + "/myTest.pd");
To make sure that I have a valid file path.
Dave
Technical Details
Message-ID:
<3bc144b2.6@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc144b2.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,1aed37f8dc66a37e X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: How to name PDF export using InD current file name? Message-ID: <3bc144b2.6@webcrossing.la2eafNXanI> Date: Tue, 15 Aug 2006 11:28:33 -0700 References: <3bc144b2.-1@webcrossing.la2eafNXanI> Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing