From: ask@sei.cmu.edu (Alan Koch)
Newsgroups: comp.text.frame
Subject: UNIX FrameMaker Default Printer
Keywords: UNIX FrameMaker Default Printer
Date: 18 Dec 92 16:48:51 GMT
Organization: The Software Engineering Institute


One of our users complained about the PrinterName in a document he is
co-authoring.  Specifically, that since the two of them use a different
printer, they are often frustrated by accidentally printing the document
in the wong place and either having to kill extra trees, or run to a different
floor to pick up the print-out.

Through this person's suggestion, I made a VERY EASY change to FrameMaker's
printing script which allows it to either pick up the user's PRINTER
environment variable, or print to a specific printer of the user's choice.

The first enclosure is my post explaining this to our users.

The second enclosure is the change I made.

Enjoy!

ask@sei.cmu.edu

Alan S. Koch
Software Engineering Institute
Carnegie Mellon University
Pittsburgh, PA  15213

==============================================================================
Subject: FrameMaker Default Printer

SUMMARY
	An enhancement has been made to the UNIX version of FrameMaker
	which will allow users to print to their default printer, as
	defined by their PRINTER environment variable.

	To print to your default printer, enter DEFAULT (in all capitals)
	in the PrinterName edit box in the Print dialog.

BACKGROUND
	Newly created documents (NEW button) do not have a PrinterName
	associated with them.  

	When you print a new document for the first time, FrameMaker inserts
	the value of your Maker.printerName X-resource into the PrinterName
	edit box in the Print dialog.  

	If you save the document after printing it, then that printer name
	is saved in the document file.

	From that point on, the printer name that is stored in the file is
	the one which will show up in the print dialog, regardless of who
	opens and prints the file later.

PROBLEM
	If a person's office moves so that his default printer changes,
	or if people who do not use the same default printer share 
	documents, then unexpected values can appear in the printer name
	edit box in the print dialog.  

	The person can easily miss the fact that the document will print 
	on a different printer than they expect, causing confusion, 
	or in the case of confidential documents, worse.

SOLUTION
	Rather than specifying the printer to which you wish the document
	to go, simply specify DEFAULT in the Printer Name edit box.
	This will cause Framemaker to print the document on the printer
	indicated by your PRINTER environment variable.

RECOMMENDED
CHANGES
	All UNIX FrameMaker users are urged to make the following changes:

	1. In your .Xdefaults, change the Maker.printerName line to read
		Maker.printerName:              DEFAULT

	2. In any existing documents,
	   change the Printer Name to DEFAULT when you print,
	   then save the document.

QUESTIONS?
	All questions regarding this should be submitted via SCARS, or
	directed to the Computing Facilities Hotline (5015).

============================================================================
The change was made in
	$FMHOME/.fminit2.0/FMlpr.init

In this script, I replaced the following line marked "OLD> " 
with the lines marked "NEW> "

OLD> PRINTER=$1

NEW> if [ $1 != 'DEFAULT' ]; then
NEW>     PRINTER=$1
NEW> fi

============================================================================

ask@sei.cmu.edu

Alan S. Koch
Software Engineering Institute
Carnegie Mellon University
Pittsburgh, PA  15213
Newsgroups: comp.text.frame