Path: utzoo!lsuc!ncrcan!brambo!sid From: sid@brambo.UUCP (Sid Van den Heede) Newsgroups: comp.lang.postscript Subject: Re: Reading Data From PostScript Message-ID: <398@brambo.UUCP> Date: 22 Apr 88 02:20:54 GMT References: <2013@optilink.UUCP> Reply-To: sid@brambo.UUCP (Sid Van den Heede) Organization: Bramalea Software Inc., Bramalea, Ont. Lines: 22 In article <2013@optilink.UUCP> cramer@optilink.UUCP (Clayton Cramer) writes: > >Does anyone know how to detect a lapse of time in PostScript? I don't >see a timer function of any sort, and looping for n iterations is highly >dependent on the hardware. The Adobe red book documents a bug in manual feeding, where a page that you want to have printed on manually fed paper is printed on a page from the tray if you tell it to manually feed to soon after another page has printed. They also provide a workaround, which involves delaying for 5 seconds before requesting manual feed. Thus, there is a timer, and it's a variable, not a function. Here's the workaround, which demonstrates the use of the variable, and shows that the variable varies "behind the scenes". usertime 5000 add % current usertime + 5000 ms {dup usertime lt {pop exit} if} loop % wait for usertime to catch up statusdict /manualfeed true put -- Sid Van den Heede Voice: 416-792-1137 sid@brambo.UUCP FAX: 416-792-1536 ...!uunet!mnetor!utgpu!telly!brambo!sid Bramalea Software, Suite 406, 44 Peel Centre Dr, Brampton, Ontario L6T 4B5