shell command to identify wireless printer
Peter Brigham MD
pmbrig at gmail.com
Fri Oct 8 13:30:31 EDT 2010
The availablePrinters shows the list of printers you have named and
have drivers for -- it's what appears in the print dialog list, from
which you choose the printer you want to use. I want to know
automatically which printer my laptop is connected to at the moment so
I can bypass the print dialog entirely and send all printing to that
printer. I have a handler that detects which printer I'm plugged into
using USB and sets the printer to that automatically, but I'm trying
to expand it to include connected wireless printers on the network.
I think this capability should ideally be built into the OS for all
laptops -- I can't be the only one who uses my laptop with different
printers in different locations. Having to choose the proper printer
every time I change venues should be unnecessary, it should be pretty
easy for the system to do it for me, at least as an option in the
printing preferences. In the absence of a system fix, I can at least
build it into my Rev (er, LiveCode) projects.
-- Peter
Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig
On Oct 8, 2010, at 1:58 AM, Dar Scott wrote:
> Does 'the availablePrinters' in LiveCode provide anything useful?
> Maybe its name give some indication that it is connected wirelessly.
>
> Dar Scott
>
> On Oct 7, 2010, at 4:12 PM, Peter Brigham MD wrote:
>
>> I'm looking for the shell command that would include in its output
>> something that would identify a printer that is currently
>> wirelessly connected to my MacBook. I can use shell("ioreg") to get
>> info on a printer connected via USB (after some parsing), but my
>> wireless printer connection doesn't show up in the ioreg listing.
>> What command can I use to see how the system identifies a wireless
>> printer? I need to be able to confirm before printing from a stack
>> that the wireless connection to the printer is up and running.
>>
>> If it matters, the wireless connection is not a Bonjour connection
>> -- it's a PC wireless network. I can print fine using the printer,
>> so the connection is good, and functional.
>>
>> -- Peter
>>
>> Peter M. Brigham
>> pmbrig at gmail.com
>> http://home.comcast.net/~pmbrig
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list