Search for new printer on mac

broken image
broken image

Use you preferred text parser to pull out the UDID for the printer.Ĥ. Use the dns-sd command to retrieve the TXT record from the advertisement for the dnssd URL.ģ. Find the AirPrint printer URL with lpinfo -v.

broken image

If you're in a situation where you don't have fixed network toopology and must use dnssd, you should really rethink your network management, but the sequence of steps is:ġ. Lpadmin -P SomeAirPrinter -D 'Some AirPrint Printer' -E -v ipp:///queuename -P /System/Library/Frameworks/amework/Versions/A/Frameworks/amework/Versions/A/Resources/AirPrint.ppd If you're in a situation where you must specify a path to a PPD file, it hides out in the Application Services framework, and has for several major OS version now, so its not likely to go anywhere. Lpadmin -P SomeAirPrinter -D 'Some AirPrint Printer' -E -v ipp:///queuename -m everywhere

broken image

If you just want to use the AirPrint driver on a printer with a reliable DNS name or IP address, use the model switch in lpadmin instead of a PPD path, and choose the IPP Everywhere driver. Good news: I'm giving a presentation on printer management in a few weeks, so I've got some experience with it, and have been working on writing it up!