[comp.sys.mac.programmer] Laserwriter pagecount

ben@ut-emx.UUCP (Ben Sloan) (11/01/89)

I'd like to write a short utility that will query the Laserwriter, over
AppleTalk, as to the total number of copies printed by the printer.  This is
the same information printed on the test page.  

Can this be done?  I know there is a function called "pagecount" or something
like that available on the LW II and LW IINT.  Is such an animal available
on the old Laserwriter?  Can this be done easily over AppleTalk?

Thanks in advance for all replies.

Ben Sloan
Univ. Texas Geology
ben@emx.utexas.edu

jb@aries5.uucp (11/02/89)

To query the laserwriter pagecount:

%!PS-Adobe-2.0 Query
%%?BeginQuery: pagecount
statusdict begin /pagecount where { pop pagecount }{{0}}ifelse = flush
%%?EndQuery: 0

Jim Bruyn
Computer Systems Group
University of Waterloo