Mac Forums

Mac Forums (
-   OS X - Operating System (
-   -   Using Lpadmin (

afansher 07-02-2011 07:52 PM

Using Lpadmin
I'm trying to set up IP printers by using lpadmin in order to streamline the process. My goal is to make an applescript application that will run a set of terminal commands that set up 3 different network printers. I would like to use the drivers that came with OSX and the problem I am running into is lpadmin -P wants drivers using the extension .PPD, however all of the OSX printer drivers are archived as .GZ files.

I get this message when I run the command pointing to the .GZ file ---

Expected PPD after '-P' option!

Its adds the printer but sets it up as a Local Raw Printer

This is where I am stuck, I was hoping to find a way to set up the printers in the GUI and then view and copy the settings in the terminal but couldn't figure out how to do this, lpstat seems like it would do this but I couldn't get it to display all settings. Any help would you guys could give me would be great.


MacsWork 07-02-2011 08:22 PM

lpadmin -p Printer_Name -L "Printer Location" -E -v lpd://x.x.x.x
-P /Library/Printers/PPDs/Contents/Resources/en.lproj/Printer_Driver.gz


Managing multiple printers via the command line - Mac OS X Hints

afansher 07-02-2011 08:40 PM

Thats the whole command I'm using, however I still get the message "Expected PPD after '-P' option!" and it doesn't load the driver

Does the client have to be on the network while I'm using this command, I'm trying to set it up but not connected to the network? Using the printer setup utility I can set up the printers even if I'm not currently connected.

afansher 07-02-2011 10:16 PM

Problem solved, the printer driver had spaces in the file name, I forgot to put the name in quotes. Once I did it worked great thanks for the response.

MacsWork 07-03-2011 08:27 AM

Good Job.

All times are GMT -4. The time now is 04:11 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.