Article View: adobe.scripting.indesign
Article #19845Re: Problem to print page with section [AS]
From: Steve Nichols
Date: Mon, 18 Nov 2002 21:21
Date: Mon, 18 Nov 2002 21:21
32 lines
2077 bytes
2077 bytes
Hi Olivier The Following worked perfectly for me... (after I did a test print that set the default printer style to my save file printer style - I did this because I had taken out the reference in the script to choosing the printer style) tell application "InDesign 2.0.1" activate if (count documents) = 0 then display dialog "Please, open a document" buttons " Ok " default button 1 with icon caution return -128 end if set myDocument to active document -- Number of pages in the document set NumberOfPage to pages per document of document preferences of myDocument -- Attention !!! set myFolder to "HD 2:Users:stevenic:Desktop:" set myFileName to "page" tell myDocument -- loop from the first page to the end of the document repeat with myPageCounter from 1 to NumberOfPage set myPageNumber to (name of page myPageCounter of myDocument) -- I must test the length of the file name !!! set myPSPathAndName to myFolder & myFileName & "_" & myPageNumber & ".ps" tell print preferences set page range to myPageCounter as string set print file to myPSPathAndName end tell print without print dialog end repeat end tell display dialog "Done ! " buttons " Okay " default button " Okay " end tell
Technical Details
Message-ID:
<1de692cb.8@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de692cb.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c647083a7342d201 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-11-18 14:02:08 PST From: "Steve Nichols" <steve@lasersedge.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Problem to print page with section [AS] Message-ID: <1de692cb.8@WebX.la2eafNXanI> Date: Mon, 18 Nov 2002 13:21:20 -0800 References: <1de692cb.-1@WebX.la2eafNXanI> Lines: 38 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit