[comp.sys.mac.apps] Postscript output from the Macintosh <<help>>

hemmat@kuhub.cc.ukans.edu (06/06/90)

In article <1990May14.215409.16644@cunixf.cc.columbia.edu>, 
shimmin@cunixf.cc.columbia.edu (John Shimmin) writes:

> In article <21069@boulder.Colorado.EDU> 
> huntert@tramp.Colorado.EDU (Tim Hunter) writes:

>>The recent article on hairlines in Mac programs reminded me of something I'd
>>like to be able to do:
>>
>>I know that Adobe Illustrator (or is it Aldus Freehand?) saves it's files as
>>postscript code.  I'd like to be able to get this type of output for other
>>programs, such as Pagemaker or Excel.  If I could get a text file of postscipt
>>code from these applications, then I'd be able to send it to the local unix
>>....
>>  Tim Hunter				University of Colorado, Boulder
>>  huntert@tramp.Colorado.EDU		'I really don't like lobster!'
 
> A little documented feature of macs is that if you hold down the 'k' key
> after you send the print command, you will generate a postscript text
> file.  i'm not sure if it matters what printer you have selected with
> the chooser.  The times I have tried it, a laser printer was selected,
> but it seems like it might work independently of the chosen printer. 
> ------
> John Shimmin
> shimmin@cunixf.cc.columbia.edu

	I have tried holding down the "k" key after sending a file
to the laser-printer, and successfully generated a psc file. I then
tried to laser-print this fie from an IBM PC, after transferring it
of course, using TOPS and was not successful at all. I have received
no error messages, no output, nothing what-so-ever. 

	Is the Mac's generateed postscript different from standard 
postscript? and if it is, is there any way to convert one to another?
Any pointers/help will be appreciated. All I am trying to do is to
generate standard postscript files from Mac applications and be able
to send them to a laser printer via main-frames. 
Thanks in advance.

M. Hemmat
--
Hemmat@kuhub.cc.ukans.edu
Hemmat@ukanvax.bitnet

wsinkees@lso.win.tue.nl (Kees Huizing) (06/06/90)

hemmat@kuhub.cc.ukans.edu writes:

>	I have tried holding down the "k" key after sending a file
>to the laser-printer, and successfully generated a psc file. I then
>tried to laser-print this fie from an IBM PC, after transferring it
>of course, using TOPS and was not successful at all. I have received
>no error messages, no output, nothing what-so-ever. 

>	Is the Mac's generateed postscript different from standard 
>postscript? and if it is, is there any way to convert one to another?
>Any pointers/help will be appreciated. All I am trying to do is to
>generate standard postscript files from Mac applications and be able
>to send them to a laser printer via main-frames. 
>Thanks in advance.

This is in principle the way.  Although I do it with command-f.  On our
Postscript printers -- connected to a network --, however, things go wrong,
for some reason or the other.  We have a program called "mcvert" which removes
the problematic things *and* adds the Apple macros.  These are added by the 
command-k trick.  So I save with command-f, get a postscript file without 
macros, which is considerably smaller, and send it to the Unix machine,
convert it with mcvert and spool it to the laserprinter.  Works perfect,
especially if you use the standard Adobe fonts (Helvetica, Palatino, etc).
I have the C-source of mcvert, I don't know whether it is free.  Ask me.

-- 
Kees Huizing - Eindhoven Univ of Techn - Dept Math & Comp Sc - The Netherlands
DOMAIN: wsinkees@win.tue.nl    BITNET: wsdckeesh@heitue5    FAX: +31-40-436685 

jbd@osf.org (Bruce Dawson) (06/06/90)

In article <1208@tuewsd.win.tue.nl>, wsinkees@lso.win.tue.nl (Kees
Huizing) writes:
> I have the C-source of mcvert, I don't know whether it is free.  Ask me.

I know I'd be interested in a copy of mcvert, and I'm sure anyone who's
had this problem would also be interested. How about posting a copy in
comp.misc.sources?

--Bruce

cosell@bbn.com (Bernie Cosell) (06/06/90)

jbd@osf.org (Bruce Dawson) writes:

}In article <1208@tuewsd.win.tue.nl>, wsinkees@lso.win.tue.nl (Kees
}Huizing) writes:
}> I have the C-source of mcvert, I don't know whether it is free.  Ask me.

}I know I'd be interested in a copy of mcvert, and I'm sure anyone who's
}had this problem would also be interested. How about posting a copy in
}comp.misc.sources?

There's another package, called 'macps' that does the same thing.  I just
ftp'ed a copy from some system .  Here's the notice that came with the copy
I've got... perhaps someone could comment on where the info-mac archive
lives..  Although he says it was posted to comp.sources.unix, and so it
should be available in the uunet archives of same.

  /Bernie\

Date: Mon, 30 Oct 89 11:07:00 PST
From: edmoy@violet.berkeley.edu
To: info-mac@sumex-aim.stanford.edu
Subject: New version of macps/prepfix (2.2)

[Note to info-mac moderator: This version replaces the current version
in the info-mac/unix directory.  Thanks.  Ed]

I've just posted the latest version of macps & prepfix (2.2) to
comp.sources.unix and comp.sources.mac and it should soon be available
by anonymous ftp from sumex-aim.stanford.edu, in the info-mac/unix
directory.  Here is a brief description:

Macps is a Unix program that takes an uploaded PostScript file created
on a Macintosh (by typing Command-F at the LaserWriter dialog box) and
includes an appropriately modified LaserPrep file so that the result
can be sent to a PostScript printer from Unix.  Since the Apple
LaserPrep files are copyrighted, I've included a program, prepfix, that
reads version 4.0 and up LaserPrep files, and edits them so that they
are compatible with macps, and are even electronically mailable.

CHANGES IN VERSION 2.2

Version 2.2 of macps/prepfix adds support of LaserWriter 6.0, and contains
some minor bug fixes.  Printing under NeXT 1.0 to the NeXT laser printer
works well for LaserWriter 4.0 - 5.2 (except for the inherent problems
of printing patterns at 400 dpi), but under LaserWriter 6.0, some things
just don't print, and I don't know why (the exact same file prints fine
on a LaserWriter).

Edward Moy                              Principal Programmer - Macintosh &
Unix
Workstation Support Services            Workstation Software Support Group
University of California
Berkeley, CA  94720

edmoy@violet.Berkeley.EDU
ucbvax!violet!edmoy

cosell@bbn.com (Bernie Cosell) (06/06/90)

cosell@bbn.com (Bernie Cosell) writes:

}There's another package, called 'macps' that does the same thing....

}I've just posted the latest version of macps & prepfix (2.2) to
}comp.sources.unix and comp.sources.mac and it should soon be available
}by anonymous ftp from sumex-aim.stanford.edu, in the info-mac/unix
}directory.  

In fact this is correct (I just checked), you can just ftp the thing
off of sumex-aim.stanford.edu [info-mac/unix/macps-22.shar].  It is
40Kbyts long, and so I don't think it need be posted here, but I'll be
happy to email it to anyone who has trouble FTP'ing...

  /b\

tjfs@tadtec.uucp (Tim Steele) (06/07/90)

A note about this command-F (or is it command-K) sequence: exactly
*how* do you type it?  I can't get it to work!

Incidentally, if you use ResEdit to open up the LaserWriter and change
DITL -8191 (as a DITL) item Disk File from 0 0 0 0 to 49 320 65 400, a
nice check box will pop up instead.

Tim
-- 

tjfs@tadtec.uucp   ..!uunet!mcvax!ukc!tadtec!tjfs
Tadpole Technology plc, Titan House, Castle Park, CAMBRIDGE, CB3 0AY, UK
Phone: +44-223-461000   Fax: +44-223-460727   Telex: 817316 TADTEC G

philip@Kermit.Stanford.EDU (Philip Machanick) (06/08/90)

In article <TJFS.90Jun7165036@tadtec.uucp>, tjfs@tadtec.uucp (Tim
Steele) writes:
> A note about this command-F (or is it command-K) sequence: exactly
> *how* do you type it?  I can't get it to work!
> 
Type it right after hitting OK on the Print dialog. If it doesn't work,
turn background printing off in Chooser.

Philip Machanick
philip@pescadero.stanford.edu

wsinkees@lso.win.tue.nl (Kees Huizing) (06/08/90)

jbd@osf.org (Bruce Dawson) writes:

>I know I'd be interested in a copy of mcvert, and I'm sure anyone who's
>had this problem would also be interested. How about posting a copy in
>comp.misc.sources?

The program we use is not mcvert, it's macps.  I confused the names. Sorry.

		What is in a name?
		Which we call a rose
		Would smell as well
		By any other name.
			- Douglas Adams

-- 
Kees Huizing - Eindhoven Univ of Techn - Dept Math & Comp Sc - The Netherlands
DOMAIN: wsinkees@win.tue.nl    BITNET: wsdckeesh@heitue5    FAX: +31-40-436685 

wsinkees@lso.win.tue.nl (Kees Huizing) (06/08/90)

tjfs@tadtec.uucp (Tim Steele) writes:

>A note about this command-F (or is it command-K) sequence: exactly
>*how* do you type it?  I can't get it to work!

What works without any real-time assumptions is the following.
Move the mouse pointer on the OK button.  Press the mouse button, but don't
release it yet.  Press the command-key and the F key, don't release yet.
Release the mouse button.  Wait until you see a message saying that the file
is not sent to a printer.  (I get the message: "Why don't you buy a
Postscript printer?" -- is this a joke from Apple?)  Then release the keys.

This even works from menus, like in Hypercard.  (You don't get a dialog box
there when you print.  It just prints)  You pull down the menu, select the
option Print, keep the mouse button pressed, press the keys, release the
mouse, etc.
-- 
Kees Huizing - Eindhoven Univ of Techn - Dept Math & Comp Sc - The Netherlands
DOMAIN: wsinkees@win.tue.nl    BITNET: wsdckeesh@heitue5    FAX: +31-40-436685 

mingyu@romeo.cs.duke.edu (Mingyu Wang c/o hsg) (06/08/90)

In article <TJFS.90Jun7165036@tadtec.uucp> tjfs@tadtec.uucp (Tim Steele) writes:
>A note about this command-F (or is it command-K) sequence: exactly
>*how* do you type it?  I can't get it to work!
>

This is exactly how I typed it: open the print dialog box, hold down the
mouse button on "OK", press command-k and hold it down, release the 
mouse button, release command-k.

Now my problem is that this sequence works on Mac II, not on MacSE/30. I 
speculated that in order to have it work, a printer has to be attached 
to the Mac.  But if I have a LaserWriter for the Mac, probably I do not
need the postscript file to be generated.

comment requested.

edgar@shape.mps.ohio-state.edu (Gerald Edgar) (06/08/90)

In article <1213@tuewsd.win.tue.nl> wsinkees@lso.win.tue.nl (Kees Huizing) writes:
>What works without any real-time assumptions is the following.
>Move the mouse pointer on the OK button.  Press the mouse button, but don't
>release it yet.  Press the command-key and the F key, don't release yet.
>Release the mouse button.  Wait until you see a message saying that the file
>is not sent to a printer.  (I get the message: "Why don't you buy a
>Postscript printer?" -- is this a joke from Apple?)  Then release the keys.

This does not work with MacDraw II.  If you do this on MacDraw II, then
after you release the mouse button, the command-F is sent to MacDraw, so
the "Arrange" menu title hilights.  Presumably MacDraw is arranging the
layers of my document for me.  I claim this is a bug in MacDraw, but Claris
has not yet admitted it.

In order to creat a Postscript document using this method with
MacDraw II, you click OK normally, wait for the window "Printing pages
1 to 10" (or whatever), then immediatly hold down command-F (or simply F).
Of course a better solution is ResEditing the Laserwriter file to show the
check-box.
--
  Gerald A. Edgar          
  Department of Mathematics             Bitnet:    EDGAR@OHSTPY
  The Ohio State University             Internet:  edgar@mps.ohio-state.edu
  Columbus, OH 43210   ...!{att,pyramid}!osu-cis!shape.mps.ohio-state.edu!edgar

davide@cs.qmw.ac.uk (David Edmondson) (06/08/90)

In <1990Jun7.230119.8449@Neon.Stanford.EDU> philip@Kermit.Stanford.EDU (Philip Machanick) writes:

>In article <TJFS.90Jun7165036@tadtec.uucp>, tjfs@tadtec.uucp (Tim
>Steele) writes:
>> A note about this command-F (or is it command-K) sequence: exactly
>> *how* do you type it?  I can't get it to work!
>>
>Type it right after hitting OK on the Print dialog. If it doesn't work,
>turn background printing off in Chooser.

Don't just type it, hold it down until you see the "Creating
PostScript File" message.
-- 
David Edmondson                 ARPA: davide@cs.qmw.ac.uk
Dept of Computer Science        JANET:davide@uk.ac.qmw.cs
Queen Mary & Westfield College  UUCP: davide@qmw-cs.UUCP
Mile End Road                   AppleLink: UK0087
LONDON, E1 4NS, UK              Tel: 071-975 5250 (Fax: 081-980 6533)
                                DoD#0777 Guzzi Le Mans 1000

philip@Pescadero.Stanford.EDU (Philip Machanick) (06/09/90)

In article <20108@duke.cs.duke.edu>, mingyu@romeo.cs.duke.edu (Mingyu
Wang c/o hsg) writes:
> In article <TJFS.90Jun7165036@tadtec.uucp> tjfs@tadtec.uucp (Tim
Steele) writes:
> >A note about this command-F (or is it command-K) sequence: exactly
> >*how* do you type it?  I can't get it to work!
> 
> This is exactly how I typed it: open the print dialog box, hold down the
> mouse button on "OK", press command-k and hold it down, release the 
> mouse button, release command-k.
> 
> Now my problem is that this sequence works on Mac II, not on MacSE/30. I 
> speculated that in order to have it work, a printer has to be attached 
> to the Mac.  But if I have a LaserWriter for the Mac, probably I do not
> need the postscript file to be generated.

No, you don't need the printer to be attached. However, you should turn
background printing off in Chooser, making sure you have selected
LaserWriter as the printer type (and of course you need to have Laser
Prep and LaserWriter in the System Folder).

Philip Machanick
philip@pescadero.stanford.edu

ls1i+@andrew.cmu.edu (Leonard John Schultz) (06/09/90)

-A note about this command-F (or is it command-K) sequence: exactly
-*how* do you type it?  I can't get it to work!
- 
-Incidentally, if you use ResEdit to open up the LaserWriter and change
-DITL -8191 (as a DITL) item Disk File from 0 0 0 0 to 49 320 65 400, a
-nice check box will pop up instead.
- 
-Tim
--- 

I am uncertain of where to enter this sequence.  At what address in DITL
-8191 do I put it at? I open as general, and I can't find the location!

Len

sumner@usceast.UUCP (David Sumner) (06/09/90)

There is an INIT called LaserFix at sumex-aim that
makes it much easier to get postscript output from
the Macintosh. It sets up the checkbox 'Disk File' in
the laserwriter dialog box - so that you don't have to
use ResEdit. Checking this box is equivalent (but easier)
 to holding down the CMD+F keys after clicking OK.
 
LaserFix also lets you name the files using
a standard file dialog box - so you don't have to hassle
with postscript0-postscript9 names anymore.
 
David Sumner
Dept of Math
University of South Carolina
Columbia, SC 29208

jim@ezx.uucp (Jim Littlefield) (06/12/90)

In article <20108@duke.cs.duke.edu> mingyu@romeo.UUCP (Mingyu Wang c/o hsg) writes:
>Now my problem is that this sequence works on Mac II, not on MacSE/30. I 
>speculated that in order to have it work, a printer has to be attached 
>to the Mac.  But if I have a LaserWriter for the Mac, probably I do not
>need the postscript file to be generated.
>
>comment requested.

I have been able to do this with my SE without an attached LaserWriter.
I just turn on appletalk and use the command-K trick.

-- 

Jim Littlefield  ==  ...!uunet!ezx!jim  ==  Sunrise Software Systems

takahash@ntmtv.UUCP (Alan Takahashi) (06/16/90)

In article <8997@paperboy.OSF.ORG> jbd@virgin.mv.com writes:
>In article <1208@tuewsd.win.tue.nl>, wsinkees@lso.win.tue.nl (Kees
>Huizing) writes:
>> I have the C-source of mcvert, I don't know whether it is free.  Ask me.
>
>I know I'd be interested in a copy of mcvert, and I'm sure anyone who's
>had this problem would also be interested. How about posting a copy in
>comp.misc.sources?
>
>--Bruce

If this is the mcvert I know about, it has NOTHING to do with
Postscript.  It is a utility to convert to/from Binhex format
to MacBinary.  It runs on Unix systems.

If there is another mcvert out there, well.......

------------------------------------------------------------------------------
Alan Takahashi                          !       hplabs   amdahl
Northern Telecom Inc.                   !            \   / 
Mountain View, CA                       !UUCP:  ...!{-----}!ntmtv!takahash
                                        !              |   
"When you need to knock on wood is when !             ames
  you realize the world's composed of   !INTERNET:
  aluminum and vinyl." -- Flugg's Law   !    ntmtv!takahash@ames.arc.nasa.gov
------------------------------------------------------------------------------

kath@delta.eecs.nwu.edu (William L. Kath) (06/17/90)

We have recently been exploring the different options for getting Postscript
output from MacDrawII into another application, namely PCTeX.  (Their 
Postscript printer driver allows the inclusion of other postscript files.)
We have tried macps (for unix) and DistillPS (for the Mac), but in the end
the way that seemed to work best was a set of LaserPrep files for 
non-Apple postscript printers.  One justs gets the Postscript file without
the LaserPrep header using command-F, and then appends it to the appropriate
non-Apple-laserprep.  This file could then be included as is into a PCTeX
document.

Note that this method does not give the BoundingBox required for EPS; 
if one needs that, then DistillPS or one of the other methods mentioned
recently in postings should be used.

We found all of the above via anonymous ftp from the Info-Mac archives 
(sumex-aim.stanford.edu).

Bill Kath ----------------------- kath@delta.eecs.nwu.edu
             Engineering Sciences and Applied Mathematics
McCormick School of Engineering,  Northwestern University