We use lpadmin to add printers programmatically:
lpadmin -p <PrinterName> -E -v <URI>
Appears to work fine - and the new printers do appear in the GUI.
Peace,
- T.
--
Tobias Peciva
Team Leader / Software Architect
Pharos Systems - http://www.pharos.com/
On 15/11/2007, at 11:15 AM, Josh Klun wrote:
On Tiger, we added "virtual printer" to cups, for internal use by
our application. We created a script in /usr/libexec/cups/
backend/, copied a PPD to /private/etc/cups/ppd/ and updated /
private/etc/cups/printers.conf. Once the printer is added, we
select & control it with lpoptions, lpadmin, lpstat, etc.
Unfortunately, none of this works on Leopard. The cups operations
are all successful and internally consistent, but none of the
changes are propagated to the GUI/application level. Selecting &
querying the current printer can be performed using AppleScript on
"Printer Setup Utility", but I haven't figured out how to
programatically add a printer (particularly with a cups backend).
Is there a recommended way to add a CUPS printer on Leopard? Is
there a way to sync the cups configuration into the configuration
used by the print dialog & system preference?
----------------------------------------------------------------------
-----------------------
Electronic Privacy Notice
The present e-mail, and all of its attachments, contains
information that is covered by the US and/or international
electronic communications privacy laws, and is confidential and
proprietary in nature. If you are not the intended recipient,
please be advised that you are legally prohibited from keeping,
using, duplicating, distributing, or otherwise disclosing any of
this information in any form. Instead, please notify the sender
that you have received this message in error, and then immediately
delete it.
Thank you in advance for your cooperation,
BrighTech, Inc.
======================================================================
=======================
_______________________________________________
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
_______________________________________________
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