Article View: adobe.scripting.indesign
Article #15779applescript for creating Single Page PS files
From: Jon_Timian
Date: Fri, 14 Nov 2003 20:51
Date: Fri, 14 Nov 2003 20:51
25 lines
1812 bytes
1812 bytes
I work for a Magazine and we have been considering switching from Quark Xpress to InDesign. The problem is I need to be able to output single page postscript files from multiple page documents for our printer. I tried modifying a script I found here for creating single page PDF files. In the event log it seems like it is doing what I think should, but it doesn�t create any files. Here is the script I have been trying: tell application �InDesign 2.0.2� set myDocument to active document set myName to �Bmag� set myPages to pages of myDocument set myFolderPath to (choose folder with prompt �Please select the folder you want to save your Post Script Files in�) as string set myStyles to name of printer styles set myPrinterStyle to (choose from list myStyles with prompt �Please Choose an Export style�) as string set mySeparator to �_� repeat with anItem in myPages set myPageNumber to name of anItem as string set MyFile to myFolderPath & myName & mySeparator & myPageNumber & �.ps� set myPages to myPageNumber tell myDocument print MyFile using myPrinterStyle without print dialog end tell end repeat end tell What am I doing wrong? Jon
Technical Details
Message-ID:
<2cce65e8.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,25854f36698e198a,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-14 13:07:54 PST From: Jon_Timian@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: applescript for creating Single Page PS files Message-ID: <2cce65e8.-1@webx.la2eafNXanI> Date: Fri, 14 Nov 2003 12:51:33 -0800 Lines: 33 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit