Hi,
I just want to known if an USB printer is on and ready. I tried with Printer Setup, System Profiler and i don’t found any BSD command. In System Profiler report the printer record is present when the printer is on but the title of the record is just “USB Printer” without its name.
Any idea ? Thanks.
I’ve tried “set BaseSys to do shell script “system_profiler - detailLevel basic”” and unfortunately, it shows both of my printers, on or off, by name in my case. No indication of whether the printer is powered up. I haven’t had time to try a direct lpr command for some small dummy file and trap the error, but you might try that.
Adam,
LPR command don’t return error message when the printer is off. The file goes to the printer queue.
Michael,
I know peripheral vision but i search some tips to test printer in my own program
Frustrating, isn’t it – I can’t figure out a way either. Surely the system “knows” whether a printer is functional but it keeps it to itself.