How to obtain the Mac OS X version?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to obtain the Mac OS X version?

Stew MacLean

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

Reply | Threaded
Open this post in threaded view
|

RE: How to obtain the Mac OS X version?

Boris Popov, DeepCove Labs (SNN)
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

Reply | Threaded
Open this post in threaded view
|

RE: How to obtain the Mac OS X version?

Stew MacLean
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


Reply | Threaded
Open this post in threaded view
|

Re: How to obtain the Mac OS X version?

Eliot Miranda-2
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

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