Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tioga printer added automatically in Panther



I have made a number of posts asking for help with this problem and finally
HAVE THINGS WORKING. I had to do 3 things to get the printer to add
automatically after I ran my installer and restarted my Mac. (I could have
power-cycled the printer or removed/reinserted the USB cable instead, as
all of these generate the hot-plug event that cause the printer to be
added.) The three things are:
   1) ensure the kPrinterBrowserDeviceIDValue string matches the model
substring returned by the printer EXACTLY. My printer's string is "MDL:
1400 Printer" (note the leading space); "MDL:1400 Printer" or "MDL:1400" or
"MODEL: 1400 Printer" won't work. (This requirement was from a Printing
List an e-mail from Paul Danbold to Koichiro on 5 Nov 2003, though I didn't
realize its importance since the subject referred to CUPS printers. It
contradicts the information Apple provides in Printing Examples file
DeviceID.c (dated Apr 24 2002); I suspect the information was correct
before Jaguar but is no longer correct).
   2) The plug-in files and folders must be owned by root:admin and have
permissions of 0644 and 0755, respectively.
   3) The installer must have a 'postflight' file which contains
'/System/Library/SystemConfiguration/PrinterNotifications.bundle/Contents/MacOS/makequeues
 -u'; running it outside of the installer did not cut it.

I did step 1 first but the printer did not add automatically. Then I ran my
installer and launched makequeues manually, with the same result. Then I
added the postflight script to my installer, with the same result. Finally,
I fixed permissions and ownership before creating the installer; this did
the trick.

By the way, the installer often failed the first time I ran it (the
installer log file showed a NSException was thrown); subsequent installs
worked properly.


Note: while the following information is not important for getting a Tioga
printer to add automatically, it is nice to know.
1. The Info string is not used for USB.
2. The Kind string displays as the Printer Model in Printer Setup Utility's
'Add Printer' window when a printer is added manually.
3. The ProductName string is the printer Kind field in PSU's printer list.
It is displayed in the Page Setup dialog when a printer of this type is
selected, and it is the *ModelName and *NickName values in the PPD file
(which is created automatically for Tioga drivers and located in
/etc/cups/ppd). The first word of this string is the PPD's *Manufacturer
value.
4. The LongName string is the PPD file's *Product value; I can't find it
used anywhere.
5. The ShortName string is the PPD file's *ShortNickName value; I don't see
this used either.

By the way, for CUPS drivers, the *Product value should be the
concatenation of the 1284 DeviceID MFG: and MDL: substrings, separated by a
space and surrounded by parentheses. (The rules for CUPS drivers are quite
different from Tioga drivers; the PPD file is provided by the driver
developer, the file is compressed using gzip and is given a .gz extension,
and it is placed in /Library/Printers/PPDs/Contents/Resource/en.lproj (for
an English PPD file, anyway). The PPD file specifies the CUPS driver
(filter) it works with, and I didn't seem to have to run makequeues for the
driver to add automatically.)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Printing mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/printing/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.