Printer Scripts For Mac

Posted on
Printer Scripts For Mac Rating: 4,0/5 5045 votes

Goal: add a network printer via Remote Desktop’s command-line to numerous Macs. The following commands have worked for me: lpadmin -p 'NAME' -v 'URL' -P 'PPD' -o printer-is-shared=false -E cupsenable 'NAME' cupsaccept 'NAME' where:.E — enables the printer.o printer-is-shared=false — the added printers are shared by default (i.e. “Share this printer on the network” would be ticked).

Since my printer is already shared on the network, I don’t want to share it again from the Macs. NAME — arbitrary name, can be anything, e.g. URL — the printer’s URL. PPD — the path to a.ppd (PostScript Printer Description) file. Probably you don’t know how to find the URL and the PPD of the printer. The first step to retrieve them is to add the printer to your computer via System Preferences Print & Scan. Now let’s find the URL.

What follows is probably not the best way to do it, but it’s worked for me. Run the following to enable CUPS web-interface: cupsctl WebInterface=yes In your web-browser open, click on your printer’s name and copy the URL after “Connection”: How to get the PPD? This is easier: go to /etc/cups/ppd/ and copy the PPD file. Obviously you’d want to put it on a local NAS or in some other place that would be accessible by other Macs. The final command for me was: lpadmin -p 'AFFA-ST-MFP-1' -v 'dnssd://AFFA-ST-MFP-1.ipp.tcp.local.' -P '/Volumes/Servers/AFFASTMFP1.ppd' -o printer-is-shared=false; cupsenable 'AFFA-ST-MFP-1' -E; cupsaccept 'AFFA-ST-MFP-1'; Further reading:.

by William Smith. Does anyone know the terminal command to add a printer to a mac that is already being shared on the network? I have an old mini that is sharing printers to everyone.

PrinterWriting scripts for mac

Printers For Mac Computers

Printer scripts for mac free

We just replaced these printers with new ones. This mini (Print Server) is now updated and sharing these new printers. I know the terminal command how to erase all the current printers on each of our macs.

Best Printers For Mac

But can’t figure out how to add these new printers from the Print Server using ARD and the unix command. Something like this???? Lpoptions -d dnssd://Canon%207565%20Front%20%40%20Print%20Server ( then some other commands??).