Article View: adobe.scripting.indesign
Article #15392Re: AS Indesign: Export documents to PDF
From: Ben_Roche
Date: Tue, 02 Dec 2003 03:50
Date: Tue, 02 Dec 2003 03:50
27 lines
1721 bytes
1721 bytes
Well this is what I ended up with. After cearting the original one I relised that I needed you choose print styles and where it was saved so it changed a bit. This is what I ended up with if any one wants it. Also have a version if there are multi page documents. Thx for the help. on open fileList tell application "InDesign 2.0.2" set myFolderPath to (choose folder with prompt "Please select the folder you want to save your PDF pages in") as string set myStyles to name of PDF export styles set myExportStyle to (choose from list myStyles with prompt "Please Choose an Export style") as string end tell repeat with aFile in fileList tell application "InDesign 2.0.2" open aFile -- This section gets the info from the document set myDocument to active document set myName to name of myDocument set MyPDF to myFolderPath & myName & ".pdf" -- go go go tell myDocument export format PDF type to MyPDF using myExportStyle without showing options close myDocument saving no end tell end tell end repeat end open beep 3
Technical Details
Message-ID:
<2cceaa25.2@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2cceaa25.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,5b18b76b3427bd7c X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-01 20:07:44 PST From: Ben_Roche@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: AS Indesign: Export documents to PDF Message-ID: <2cceaa25.2@webx.la2eafNXanI> Date: Mon, 1 Dec 2003 19:50:46 -0800 References: <2cceaa25.-1@webx.la2eafNXanI> Lines: 30 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit