Re: Getting USB volume serial number from inserted device on OSX

2013-04-05 Thread Sven
On 5 April 2013 06:20, Tim Roberts wrote: > John Nagle wrote: > > > > That would be useful to have as a portable function for all USB > >devices. Serial port devices are particularly annoying, because their > >port number is somewhat random when there's more than one, and changes > >on hot-pl

Re: Getting USB volume serial number from inserted device on OSX

2013-04-04 Thread Tim Roberts
John Nagle wrote: > > That would be useful to have as a portable function for all USB >devices. Serial port devices are particularly annoying, because their >port number is somewhat random when there's more than one, and changes >on hot-plugging. There is no portable solution. Every operating

Re: Getting USB volume serial number from inserted device on OSX

2013-04-04 Thread John Nagle
On 4/2/2013 3:18 PM, Sven wrote: > Hello, > > I am using Python 2.7 with pyobjc on Lion and NSNotification center to > monitor any inserted USB volumes. This works fine. > > I've also got some ideas how to get a device's serial number, but these > involve just parsing all the USB devices ('system

Re: Getting USB volume serial number from inserted device on OSX

2013-04-03 Thread Sven
Apologies. The main app is in python, and I would like to know any alternative methods to do this in Python on OS X. Doesn't have to use the OS X APIs. I'll try elsewhere too though. Thanks On 3 April 2013 00:37, Ned Deily wrote: > In article > , > Sven wrote: > > I am using Python 2.7 with

Re: Getting USB volume serial number from inserted device on OSX

2013-04-02 Thread Ned Deily
In article , Sven wrote: > I am using Python 2.7 with pyobjc on Lion and NSNotification center to > monitor any inserted USB volumes. This works fine. [...] Since your question really is about OS X APIs and not Python or even PyObjC, you're more likely to get a meaningful answer elsewhere. Tr

Getting USB volume serial number from inserted device on OSX

2013-04-02 Thread Sven
Hello, I am using Python 2.7 with pyobjc on Lion and NSNotification center to monitor any inserted USB volumes. This works fine. I've also got some ideas how to get a device's serial number, but these involve just parsing all the USB devices ('system_profiler SPUSBDataType' command). However I'd