This is on OS X 10.8. I want to be able to arbitrarily pull the configuration for a particular printer, so I can use it in a package-creation script. The script (not mine) uses
/usr/sbin/lpadmin -p "$printername" -L "$location" -D "$gui_display_name" -v "$address" \ -P "$driver_ppd"
to set up a new printer.
If I supply
$printername on the system I'm pulling from, I can get
$location and $address from
lpoptions. But I can't seem to find a command that will give me
$driver_ppd (which takes the form
/Library/Printers/PPDs/Contents/Resources/HP LaserJet P4010_P4510 Series.gz).
I know it's available to the system because I can see it in the CUPS web interface under that printer.