[comp.protocols.appletalk] postscript problem: LaserWriter vs. Imagen

era@ncar.ucar.edu (Ed Arnold) (03/24/89)

We're having some problems with getting postscript files originally
prepared on a Mac, to print on an Imagen (model 2308S, system version 4.0)
running ultrascript.  This problem is compounded by the fact that there are
no postscript experts around here.  Can anyone give me advice on the
following?

The first 12 lines of the postscript file with which we're having problems,
are given between the dashed lines at the end of this posting.  For this
posting, to make sure news software doesn't truncate long lines, the 12
lines have been expanded to 17 lines, by folding each line to a max length
of 72, with an asterisk added in col. 73 to each line which continues onto
the next line.

I have tried the following to get the file to print:

1) If the file given below is sent to ultrascript, the Imagen's
   error message is:

	%%[ Error: invalidaccess; OffendingCommand: setdefaulttimeouts ]%%

   I assume "setdefaulttimeouts" is a procedure unique to Apple; there is
   no mention of it in the Adobe postscript language ref manual.

2) Assuming "setdefaulttimeouts" is a systemdict entry which Imagen doesn't
   know about, I tried commenting out the 9th line by inserting "%%%"
   before "statusdict".  That results in an error message:

	%%[ Error: undefined; OffendingCommand:

3) Well, then I decided to get cagey (a pretty neat trick, since I don't
   know postscript :-))  and define a procedure called "setdefaulttimeouts"
   that would just pop 3 items off the stack.
   I inserted the following line before line 9:

	/setdefaulttimeouts {pop pop pop} def

   That just resulted in the same error message as in case (1).

4) Finally, I tried installing the Apple V5.2 LaserPrep
   by inserting the following line before line 9:

	(dictv52.ps)run

   where "dictv52.ps" is a file which Imagen installed on the hard disk
   when the printer was installed.  (Unfortunately, the customer can't
   look at this file.)  The error message was still the same as in case
   (1) above.
   
If you can offer any advice, please mail it to me.  I'll post the most
elegant solution, if I receive one, in the groups to which this was
was posted.
------------------------------------------------------------------------
%!<NIS.NSF.NET> [NSFNET] TOPOLOGY.NEW-PS
%%Title: "Laser Prep -- The Apple PostScript Dictionary (md)"
%%Creator: Apple Software Engineering
%%CreationDate: Thursday, March 19, 1987
%{appledict version #68 0
% ) CopyRight Apple Computer, Inc. 1984,1985,1986,1987,1988 All Rights R*
eserved.
%%EndComments
%%BeginProcSet: "(AppleDict md)" 68 0
statusdict begin waittimeout 300 lt{0 60 300 setdefaulttimeouts}if end
currentfile statusdict begin serverdict begin product (LaserWriter II NT*
) eq revision 1 eq and {/setrealdevice {//setrealdevice exec 31 sendpcmd*
 4 eq tonerlight} bind def
/execjob {31 sendpcmd 4 eq tonerlight //execjob exec} bind def end end e*
exec}{end end 722{currentfile read pop pop}repeat}ifelse 
35de8eabfc7fa5eac0431edc501ad43f5fcbdf9fdd321cce93b525f4439dd94696bf56ac*
13a0a2aad1e6bcf444711e941d7217138d20ae0500145f815439cc14e697ad201df728ea*
4ccad4ac331aa03a7aacde10760bf4ee12bbf73c77cdcbf1796f26f0dd255d2407e1ac41
------------------------------------------------------------------------
-- 
--------
Ed Arnold * NCAR (Nat'l Center for Atmospheric Research) * Mesa Lab
PO Box 3000 * Boulder, CO  80307-3000 * 303-497-1253(w) * 303-494-6949(h)
era@ncar.ucar.edu (128.117.64.4) * {ames,gatech,noao,...}!ncar!era

liam@cs.qmc.ac.uk (William Roberts) (04/04/89)

In article <1635@ncar.ucar.edu> era@ncar.UCAR.EDU (Ed Arnold) writes:
>We're having some problems with getting postscript files originally
>prepared on a Mac, to print on an Imagen (model 2308S, system version 4.0)
>running ultrascript.

>%%BeginProcSet: "(AppleDict md)" 68 0
>statusdict begin waittimeout 300 lt{0 60 300 setdefaulttimeouts}if end
>currentfile statusdict begin serverdict begin product (LaserWriter II NT*
>) eq revision 1 eq and {/setrealdevice {//setrealdevice exec 31 sendpcmd*
> 4 eq tonerlight} bind def
>/execjob {31 sendpcmd 4 eq tonerlight //execjob exec} bind def end end e*
>exec}{end end 722{currentfile read pop pop}repeat}ifelse
>35de8eabfc7fa5eac0431edc501ad43f5fcbdf9fdd321cce93b525f4439dd94696bf56ac*
>13a0a2aad1e6bcf444711e941d7217138d20ae0500145f815439cc14e697ad201df728ea*
>4ccad4ac331aa03a7aacde10760bf4ee12bbf73c77cdcbf1796f26f0dd255d2407e1ac41
...

I would conservatively estimate your chances of making this
work to be Zero, especially since you lack anyone who can
rewrite the LaserPrep file almost in its entirety.

The Apple LaserPrep file is a fiendish exercise is writing bad
PostScript; it is about as cuuningly and unnecessarily
non-portable as I can possibly imagine. Your problems will get
rather worse once you start hitting the eexec routines.

To have any chance with this stuff you will need to contact
Imagen and ask them how they justify having an AppleTalk
interface on their printer if it can't print Apple output: they
may have a new installable dictionary to side-step the latest
Apple trickery...
-- 

William Roberts         ARPA: liam@cs.qmc.ac.uk
Queen Mary College      UUCP: liam@qmc-cs.UUCP
190 Mile End Road       Tel:  01-975 5250
LONDON, E1 4NS, UK      Fax:  01-981 7517

mark@imagen.UUCP (Mark Peek) (04/05/89)

In article <900@sequent.cs.qmc.ac.uk>, liam@cs.qmc.ac.uk (William Roberts) writes:
> In article <1635@ncar.ucar.edu> era@ncar.UCAR.EDU (Ed Arnold) writes:
> >We're having some problems with getting postscript files originally
> >prepared on a Mac, to print on an Imagen (model 2308S, system version 4.0)
> >running ultrascript.
> 
> To have any chance with this stuff you will need to contact
> Imagen and ask them how they justify having an AppleTalk
> interface on their printer if it can't print Apple output: they
> may have a new installable dictionary to side-step the latest
> Apple trickery...

IMAGEN has never produced an AppleTalk interface in their printers. We
have supported Ethernet(TCP/IP, XNS), parallel, and serial but never
AppleTalk. As far as our parent company, QMS, they do support AppleTalk
but not on any IMAGEN based products.

If there are support problems, such as the LaserPrep file, you should
contact IMAGEN Applications Support at (408) 986-9400. I know that we
have solutions to this problem (I just don't have them handy at this time).

		Mark

----

Name:	Mark Peek
Mail:	Imagen Corp. 2650 San Tomas Expressway, P.O. Box 58101
        Santa Clara, CA 95052-8101
AT&T:	(408) 986-9400
UUCP:	...{decvax,ucbvax}!decwrl!imagen!mark
ARPA:	mark@ford-scf1.arpa