🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17372

Re: Script to print pages

#17372
From: Shane Stanley
Date: Fri, 13 Jun 2003 22:38
36 lines
1827 bytes
I wish this guy would test his code ;-)

There were some brackets missing, and the word "folder' instead of "file" twice.

Once more:



 
on idle 
	set theFolder to "Macintosh HD:Folder to watch:" 
	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 
			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.9@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <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-13 16:08:11 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!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!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.9@WebX.la2eafNXanI>
Date: Fri, 13 Jun 2003 15:38:35 -0700
References: <1de96a17.-1@WebX.la2eafNXanI>
Lines: 36
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit