MAC : Script création imp
Adding and Removing a Printer
Create a Printer (Add) :
This is done via the lpadmin command. To add a printer, use this format:
lpadmin -p Printer_Name -L "Printer Location" -E -v lpd://x.x.x.x -P /Library/Printers/PPDs/Contents/Resources/fr.lproj/Printer_Driver.gz
Adjust the settings as necessary :
- You can't use spaces in the Printer_name.
- "Printer location" can be anything.
- An IP address belongs in the x.x.x.x bit
- You can change lpd: to ipp: if that's what you use.
- The driver : you'd be best to look in the directory shown and find the filename, and then replicate it in the command line.
To remove a printer : lpadmin -x Printer_Name