Re: detecting currently connected printer - Mac

2016-09-16 Thread Peter M. Brigham
Fantastic! That does it. Many thanks. — Peter Peter M. Brigham pmb...@gmail.com > On Sep 16, 2016, at 2:22 PM, Colin Holgate wrote: > > I found this, which lets you see all devices connected to USB: > > ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v

Re: detecting currently connected printer - Mac

2016-09-16 Thread Colin Holgate
I found this, which lets you see all devices connected to USB: ioreg -p IOUSB -w0 | sed 's/[^o]*o //; s/@.*$//' | grep -v '^Root.*' > On Sep 16, 2016, at 2:16 PM, Peter M. Brigham wrote: > >> On Sep 16, 2016, at 2:09 PM, Mike Bonner wrote: >> >>

Re: detecting currently connected printer - Mac

2016-09-16 Thread Peter M. Brigham
> On Sep 16, 2016, at 2:09 PM, Mike Bonner wrote: > > Interesting. If it returns zombie printers, its not exactly helpful. Right. I need a way of detecting which printer is currently connected via USB. Any other ideas? > On Fri, Sep 16, 2016 at 12:07 PM, Colin Holgate

Re: detecting currently connected printer - Mac

2016-09-16 Thread Mike Bonner
Interesting. If it returns zombie printers, its not exactly helpful. On Fri, Sep 16, 2016 at 12:07 PM, Colin Holgate wrote: > Was curious what that does. For me it returns a list of all the printers > my Mac has seen in the last few years, and currently I have no active

Re: detecting currently connected printer - Mac

2016-09-16 Thread Colin Holgate
Was curious what that does. For me it returns a list of all the printers my Mac has seen in the last few years, and currently I have no active printers on my network at home. > On Sep 16, 2016, at 2:02 PM, Mike Bonner wrote: > > does-- lpstat -p give the info you need?

Re: detecting currently connected printer - Mac

2016-09-16 Thread Mike Bonner
does-- lpstat -p give the info you need? (from shell) On Fri, Sep 16, 2016 at 11:52 AM, Peter M. Brigham wrote: > Anyone know how to get a listing of the currently connected printer on a > Mac? I used to do this on my (very) old MacBook via a shell call: > put shell("ioreg")