Article View: comp.lang.postscript
Article #7055Re: Help with Mac-generated PS files...
From: Hurf Sheldon
Date: Thu, 14 Apr 1988 01:02
Date: Thu, 14 Apr 1988 01:02
123 lines
5633 bytes
5633 bytes
In article <136800002@uxa.cso.uiuc.edu> rce229@uxa.cso.uiuc.edu writes:
Submitted here is a shell script lsmith created to handle files created
with command F and all the little bugs due to different versions of
laserprep, etc. We have been using it without a complaint for 6 mos or
more - you will have to put the appropriate laserprep files where you
want them and edit the script accordingly.
Additional questions to lsmith@ionvax.tn.cornell.edu
(don't be lazy and waste his time before you spend some time on it, please)
----------------------remove this line and all above---------------------
#!/bin/sh
echo ' Input is ' $# 'files.'
for FILE in $@
do if test -r $FILE -a -s $FILE
then if grep -s appledict $FILE
then echo 'Please use MacPostscript files produced by CMD f, not CMD k.'
echo 'The file' $FILE 'is not acceptable for printing'
elif grep -s dobe-2.0 $FILE
then echo 'Printing MacIntosh PostScript2.0 file' $FILE
cat /usr/lib/mac/LaserPrep4.0.ps $FILE | lpr -Plsr
elif grep -s dobe-1.0 $FILE
then echo 'Printing Mac PostScript1.0 file' $FILE
cat /usr/lib/mac/LaserPrep.ps $FILE | lpr -Plsr
else echo 'The file,' $FILE ',does not appear to be a Macpostcript'
echo 'file, or the version of PS Adobe is not one we are set up to'
echo 'preprocess at this time. Please check your file.'
echo 'Do remember to Text(not Binary) Kermit postscript files'
echo 'when bringing them from the Mac to the Vaxes'
fi
else echo 'Usage: macpr <MacPostScript_File>. We do want a file, folks.'
fi
echo ' '
done
# macpr, by Lawrence Smith, 8/5/87 #
----------------------remove this line and all below to another file-----
MACPR(1l)
NAME
macpr - print a mac postscript file on the laserprinter
SYNTAX
macpr file (file file ...)
DESCRIPTION
macpr will take one or more PostScript files produced on a
Macintosh, prepend the proper modified header file, and send
it to the LaserWriterPlus in 369 Upson.
macpr checks for keywords telling it what version of Adobe
PostScript this file was intended to run on (currently 1.0 & 2.0)
and rejects the file if it cannot find them.
If the file contains the proper keys, macpr will add the
1.0 or 2.0 header and send the job to the printer.
+++++++++++++++NOTE: The Mac INCANTATION+++++++++++++++++++++++++
Step 1. Lie to your Mac. Tell it that it is connected to a
LaserWriter, even if this means telling it that AppleTalk
is connected to the printer port. (But shut off the
Imagewriter first.) This means:
A. having laserwriter and laserprep in the system folder
B. using the chooser to select the laserwriter
Step 2. Select PageSetup from the file menu, and choose settings
and features for this print job.
Step 3. Select Print from the file menu, choose settings
from the resulting dialog box, and get ready to click
on OK. But do not do so yet.
Step 4. While holding down the CMD (clover) key, click on OK and
IMMEDIATELY press and hold the f key until a box comes up
with "Creating PostScript file". Then you may release
both keys and wait for it to finish. (You will probably
have to shut off any print spooler to make this work)
Step 5. exit your application and look for the PostScript file.
If it is PostScript0, then you may create up to 10
files at once. If it is named PostScript, then you will
have to exit and change its name each time that you
create a PS file, or it will be overwritten.
Step 6. Reset printer choice when done. Then twiddle something in
the control panel, which will save the chooser setting.
(yes, this is arcane. But it means using the printer
normally the next time you power up...)
Step 7. Use VersaTerm to logon to ionvax, and issue the command
"kermit -r", which prepares ionvax's kermit to recieve
a file. On the Mac, select Text Kermit from the file menu.
Step 8. Select SendFile... from the file menu, select the file to
send, and click SendOne. The file will be copied into your
current directory on ionvax with the name it has on the
Mac.
Step 9. macpr file [on ionvax, of course...]
DIAGNOSTICS
Complains about no file, file with LaserPrep header, files which
are not Adobe-1.0 or Adobe-2.0, zero length file.
BUGS
FILES
/usr/local/macpr, /usr/lib/mac/LaserPrep.ps, /usr/lib/mac/LaserPrep4.0.ps
SEE ALSO
lpr(1), sh(1), lpq(1), kermit(1c), VersaTermPRO manual
[8/5/87 -LS]
--
Hurf Sheldon Network: hurf@ionvax.tn.cornell.edu
Lab of Plasma Studies Bitnet: hurf@CRNLION
369 Upson Hall, Cornell University, Ithaca, N.Y. 14853 ph:607 255 7267
I sold my Elan, got a job in science; Now, no one takes me seriously.
Technical Details
Message-ID:
<4407@batcomputer.tn.cornell.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bbn!rochester!cornell!batcomputer!hurfReferences:
<993@nugipsy.UUCP> <136800002@uxa.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bbn!rochester!cornell!batcomputer!hurf From: hurf@batcomputer.tn.cornell.edu (Hurf Sheldon) Newsgroups: comp.lang.postscript Subject: Re: Help with Mac-generated PS files... Message-ID: <4407@batcomputer.tn.cornell.edu> Date: 14 Apr 88 01:02:37 GMT References: <993@nugipsy.UUCP> <136800002@uxa.cso.uiuc.edu> Reply-To: hurf@tcgould.tn.cornell.edu (Hurf Sheldon) Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 123