From: quang@CSUFRES.CSUFRESNO.EDU (Quang Ngo)
Newsgroups: comp.sys.amiga.emulations
Subject: Re: Postscript HP laserwriter via serial port?
Date: 4 Sep 92 15:36:10 GMT

+---------
| From: rzv30@amail.amdahl.com (Rene' A. Vega)
| I've been playing around with AMAX-2 as well as a powerbook 100. I already 
| have an HP Laserjet II with postscript support, and it's hooked up to my 
| Amigas.
| 
| I took a look at Insight development Corp.'s MacPrint which contains quite a 
| number of printer drivers for the Mac. Unfortunately, all of their drivers 
| work with the printers' native emulations and not postscript.
| 
| Has anyone come across a Mac printer driver that sends postscript output via 
| the serial port as opposed to the official LaserWriter driver that insists on 
| using appletalk protocol?
| 
| Regards...
| 
|   Rene'
| 
| 
| Rene' A. Vega    
| Computer & Systems Architecture
| *** My opinions, not my employers ***
+---------

Below is a text file I put together a while back.  It's also located
at amiga.physik.unizh.ch and wuarchive under the name 'AmaxLaserWriter'.

Have fun,
-Quang

-----
To all Amax users who have a PostScript (non-Apple) printer hooked up to 
their Amiga:

These are some useful tips that I put together with the help from
Don Markuson (dmm@tiger1.Prime.COM) (Thanks Don) to modify an existing
LaserWriter printer driver so that it's possible to print to the PostScript
printer directly with just a few clicks.  We don't have to create a
PostScript file and then use 'filedump' to dump it anymore.  This 
modification takes care all that work.

What you need is an original copy of LaserWriter 7.0, 7.1, or 7.1.1 and
Resedit 1.2 or 1.2d2 (2.1 doesn't work on AmaxII 2.06, System 6.0.5).
LaserWriter can be ftp'ed from ftp.apple.com, and Resedit is available
from many ftp sites, such as sumex-aim.stanford.edu and 128.252.135.4.
If you have problem finding these 2 files, let me know and I'll mail
them to you.

Steps are:

1)

Using ResEdit on an unadulterated copy of LaserWriter 7.1, open POST -8161 
using the Hex Editor.  Pull down "Find Hex..." from the find menu and search 
                       for:  08 2525 454F 460D 5E65
              replace with:  09 2525 454F 460D 045E 65
                    (stringlen^  % %  E O  F^M ^D ^  e)

2)

In PDEF 123, make the following three changes using the Hex Editor:

LW Driver  Hex Offset   From Word    Change To            Reason
  7.0        0616         6700         6000      Use dflt name from STR# -8163
  7.0        06C8         4246         6068      Avoid _Create
  7.0        09B6         660C         600C      Avoid _SetEOF

  7.1    (same changes as for 7.0)

  7.1.1      061E         6708         6008      Use dflt name from STR# -8163
  7.1.1      06E2         4245         6068      Avoid _Create
  7.1.1      09D2         660C         600C      Avoid _SetEOF

3)

In STR# -8163, change PostScript to .Bout
Use .Bout if your printer is hooked up through the serial port or .Aout 
if parallel.

4)

In STR -8159, change Creating PostScript File to whatever you want.
For example, "Printing to NEC Silentwriter 2 model 90" or
             "Dumping PostScript file to printer"

5)

To disable the save-file dialog entirely (since it really doesn't make 
sense to save to a file if that file never gets properly closed),
ResEdit the LaserWriter driver's PDEF 4 (it's the same for 7.0, 7.1, & 7.1.1):

 Offset   From Word   Change To
 ------   ---------   ---------
  1D12       6600        6000    Skip over save-file dialog if PS file

6)

 Resource      Offset    From    To       Reason
PDEF     4      195E     001A   001B      PostScript as default
PACK -4096      000C     E0D2   60D2      Avoid AppleTalk

and can be applied to LaserWriter 7.0, 7.1, and 7.1.1.

Have fun!

Quang Ngo

       __  
      / /\   Email: qngo@zimmer.csufresno.edu | quang@yosemite.csufresno.edu
 __  / / / A  ________ ________ __    ____      ________
/_/\/ / / G  /_/ ____/_\_\  __//_/\  /_/ _\__  /_/ ____/ +-----------+
\ \ \/ / I   \ \ \/   \ \  _\  \ \ \ \ \ \ / \ \ \ \/    | Quang Ngo +-----+
 \ \  / M     \ \ \    \ \ \    \ \ \ \ \ \/ /  \ \ \    | +1 209 251-9359 |
  \_\/ A       \_\/     \_\/     \_\/  \_\__/    \_\/    +-----------------+