Article View: adobe.scripting.indesign
Article #17298Re: Script to print pages
From: Shane Stanley
Date: Mon, 16 Jun 2003 22:08
Date: Mon, 16 Jun 2003 22:08
38 lines
1932 bytes
1932 bytes
Oh, you only want to print them once ;-)
Better move them after printing them:
on idle
set theFolder to "Macintosh HD:Folder to watch:"
set doneFolder to "Macintosh HD:Folder done:"
tell application "Finder"
try
set idFiles to (every file of entire contents of folder theFolder whose file type is "indd") as alias list
on error -- work around bug if there is only one file
set idFiles to (every file of entire contents of folder theFolder whose file type is "indd") as alias as list
end try
end tell
if idFiles is not {} then
tell application "InDesign 2.0.2"
set user interaction level to never interact
repeat with i from 1 to count of idFiles
open item i of idFiles
print document 1 using "House style" without print dialog -- name of print style to use
close document 1 saving no
tell application "Finder"
move item i of idFiles to folder doneFolder with replacing
end tell
end repeat
set user interaction level to interact with all
end tell
end if
return 10 -- try again in 10 seconds
end idle
Shane
Technical Details
Message-ID:
<1de96a17.11@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!cyclone.bc.net!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de96a17.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,83e544207eba7d74 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-06-16 15:38:08 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-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!cyclone.bc.net!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Script to print pages Message-ID: <1de96a17.11@WebX.la2eafNXanI> Date: Mon, 16 Jun 2003 15:08:27 -0700 References: <1de96a17.-1@WebX.la2eafNXanI> Lines: 37 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit