🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16401

Re: [AS] Printing seperate PS files for every file in a Book?

#16401
From: Shane Stanley
Date: Mon, 22 Sep 2003 22:46
17 lines
1310 bytes
This should get you started:

set pathToDisk to path to startup disk as text
tell application "InDesign 2.0.2"
 tell document 1
  set docName to name
  tell print preferences
   set active printer style to "My PDF Style"
   set printer to postscript file
   set print file to (pathToDisk & docName & ".ps")
  end tell
  print without print dialog
 end tell
end tell

-- 
Shane Stanley,  sstanley@myriad-com.com.au
Technical Details
Message-ID: <BB95B8F2.66EEC%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd801e.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,a374fc5f1304c8e8
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-22 16:08:06 PST
From: Shane Stanley <sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] Printing seperate PS files for every file in a Book?
Message-ID: <BB95B8F2.66EEC%sstanley@myriad-com.com.au>
Date: Mon, 22 Sep 2003 15:46:43 -0700
References: <2ccd801e.-1@webx.la2eafNXanI>
Lines: 18
User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit