[comp.sys.mac.programmer] What determines a Print Job's name.

time@tbomb.ice.com (Tim Endres) (01/25/91)

The documents that one of our applications generates, when spooled
in the BackGround, are shown by the PrintMonitor with no names. Most
other documents shown by PrintMonitor have nice little names.

What is it that I have to fill in to get the nice little name?

tim.

-------------------------------------------------------------
Tim Endres                |  time@ice.com
ICE Engineering           |  uupsi!ice.com!time
8840 Main Street          |
Whitmore Lake MI. 48189   |  (313) 449 8288

CXT105@psuvm.psu.edu (Christopher Tate) (01/26/91)

Believe it or not, the print job's name is the name of the frontmost
window.  There's a tech note on this (whose number I forget offhand),
but essentially, a good way to give documents the name you want is to
put up a window that says "Now printing <whatever>...", whose window
title is the name of the document.

-------
Christopher Tate                   |
Student-Type Person                |   "The whole place is coming alive!"
cxt105@psuvm.psu.edu               |
{...}!psuvax1!psuvm.bitnet!cxt105  |   "Yeah, and we're coming *dead*...."
cxt105@psuvm.bitnet                |

n67786@lehtori.tut.fi (Nieminen Tero) (01/27/91)

In article <91025.213010CXT105@psuvm.psu.edu> CXT105@psuvm.psu.edu (Christopher Tate) writes:

   Believe it or not, the print job's name is the name of the frontmost
   window.  There's a tech note on this (whose number I forget offhand),
   but essentially, a good way to give documents the name you want is to
   put up a window that says "Now printing <whatever>...", whose window
   title is the name of the document.

There's also a description of this same situation in Scot Knasters
Macintosh Programming Seacrets (the one with the spy in the cover). It
also explains how to get the name of the printing document appear when
printing though finder (instead of the "Document: Unspecified" or
something alike), if my memory serves me right :).
-- 
   Tero Nieminen                    Tampere University of Technology
   n67786@cc.tut.fi                 Tampere, Finland, Europe