I would like to obtain the version of Mac OS X programmaticially. Currently I use UnixProcess cshOne: 'uname -a' to obtain the But this doesn’t tell me the actual Mac OS X version. Is there a way to do this? Cheers, Stewart |
sw_vers -productVersion
Cheers, -Boris -- +1.604.689.0322 DeepCove Labs Ltd. 4th floor 595 Howe Street Vancouver, Canada V6C 2T5 http://tinyurl.com/r7uw4 [hidden email] CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. > -----Original Message----- > From: Stewart MacLean [mailto:[hidden email]] > Sent: Thursday, July 26, 2007 1:36 PM > To: [hidden email] > Subject: How to obtain the Mac OS X version? > > I would like to obtain the version of Mac OS X programmaticially. > > Currently I use > > UnixProcess cshOne: 'uname -a' > > to obtain the Darwin version. > > But this doesn't tell me the actual Mac OS X version. > > Is there a way to do this? > > Cheers, > > Stewart |
Perfect - thanks!
>-----Original Message----- >From: Boris Popov [mailto:[hidden email]] >Sent: 27 July 2007 8:43 a.m. >To: Stewart MacLean; [hidden email] >Subject: RE: How to obtain the Mac OS X version? > >sw_vers -productVersion > >Cheers, > >-Boris > >-- >+1.604.689.0322 >DeepCove Labs Ltd. >4th floor 595 Howe Street >Vancouver, Canada V6C 2T5 >http://tinyurl.com/r7uw4 > >[hidden email] > >CONFIDENTIALITY NOTICE > >This email is intended only for the persons named in the message >header. Unless otherwise indicated, it contains information that is >private and confidential. If you have received it in error, please >notify the sender and delete the entire message including any >attachments. > >Thank you. > >> -----Original Message----- >> From: Stewart MacLean [mailto:[hidden email]] >> Sent: Thursday, July 26, 2007 1:36 PM >> To: [hidden email] >> Subject: How to obtain the Mac OS X version? >> >> I would like to obtain the version of Mac OS X programmaticially. >> >> Currently I use >> >> UnixProcess cshOne: 'uname -a' >> >> to obtain the Darwin version. >> >> But this doesn't tell me the actual Mac OS X version. >> >> Is there a way to do this? >> >> Cheers, >> >> Stewart |
In reply to this post by Boris Popov, DeepCove Labs (SNN)
Note that all sw_vers does is print data in the XML file
/System/Library/CoreServices/SystemVersion.plist (see sw_vers(1)) On 7/26/07, Boris Popov
<[hidden email]> wrote: sw_vers -productVersion |
Free forum by Nabble | Edit this page |