Re: shell command to identify wireless printer

2010-10-12 Thread Peter Brigham MD
I can probably get this to work, since my handler already relies on asking the user once for the USB printer identification then storing it so the user never has to be asked again. If I can identify the wireless network I can associate a printer with it, store that printername, and then

Re: shell command to identify wireless printer

2010-10-12 Thread Mike Bonner
-I is for information, just a command line switch, as you say, no part of the filename. airport -I (cap I) make sure the space is there. If you want to see the other switches, switch to that directory in terminal manually run the command with the -h switch. ./airport -h and it will show a short

Re: shell command to identify wireless printer

2010-10-12 Thread Mike Bonner
Ignore any duplicates that show up, forgot to clean up last message and its being held for moderator approval, so don't know if they'll magically appear or not. This email is easier to read anyway. I'm actually awake now! Try this: get shell(cd /usr/sbin;system_profiler SPNetworkDataType |grep

Re: shell command to identify wireless printer

2010-10-12 Thread Peter Brigham MD
On Oct 12, 2010, at 10:17 AM, Mike Bonner wrote: Ignore any duplicates that show up, forgot to clean up last message and its being held for moderator approval, so don't know if they'll magically appear or not. This email is easier to read anyway. I'm actually awake now! Try this: get

Re: shell command to identify wireless printer

2010-10-08 Thread Peter Brigham MD
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

Re: shell command to identify wireless printer

2010-10-08 Thread J. Landman Gay
On 10/8/10 12:30 PM, Peter Brigham MD wrote: 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

Re: shell command to identify wireless printer

2010-10-08 Thread Peter Brigham MD
The printername gives the name of the printer currently selected in the print dialog, ie, the default printer. On my MacBook, this will be the last printer used. But that will not necessarily be the name of the currently connected printer, if I have changed venues. I'm trying to find a way

Re: shell command to identify wireless printer

2010-10-08 Thread Mike Bonner
Can you come at it from a different direction? Can you check current SSID against a printer list to select which printer you want? Assuming you always go to the same set of networks, this should have a similar affect yes? Set it up once, save the printer name, next time you need to print check

shell command to identify wireless printer

2010-10-07 Thread Peter Brigham MD
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

Re: shell command to identify wireless printer

2010-10-07 Thread Mike Bonner
lpq should do what you want. Will show all print queues and their status for example, my wireless printer returns _3500_4500_Series_MAC:002000148b45 is ready no entries no entries of course meaning that there are no queued documents. I didn't try shutting my printer down to see if the status

Re: shell command to identify wireless printer

2010-10-07 Thread Peter Brigham MD
lpq I'm not sure of -- it gives some odd output here with my home wireless printer. But a search sent me in the direction of lpstat, which looks promising. I'll test it out in the next few days. Thanks -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Oct 7,

Re: shell command to identify wireless printer

2010-10-07 Thread Dar Scott
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