Article View: adobe.scripting.indesign
Article #20022Problem to print page with section [AS]
From: Olivier Berquin
Date: Wed, 13 Nov 2002 11:14
Date: Wed, 13 Nov 2002 11:14
57 lines
2251 bytes
2251 bytes
Hello, I would like to make "ps file" of a document: one page = one ps file. In my document, I've many sections (this is a magazine and I don't care about advertising). These sections is a problem for me. This is the script I wrote, without success... -- Presuming : a printer style called "Fichier PostScript" 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 "DDOlivier_SYS9:Desktop Folder:" set myFileName to "page" tell myDocument tell print preferences set active printer style to "Fichier PostScript" end tell -- 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 Any idea ? Olivier.
Technical Details
Message-ID:
<1de692cb.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!easynet-quince!easynet.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c647083a7342d201,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-11-13 03:54:04 PST From: "Olivier Berquin" <ob@microscript.be> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!easynet-quince!easynet.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Problem to print page with section [AS] Message-ID: <1de692cb.-1@WebX.la2eafNXanI> Date: Wed, 13 Nov 2002 03:14:33 -0800 Lines: 57 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit