Re: How does one get the OS Product name programmatically?
Re: How does one get the OS Product name programmatically?
- Subject: Re: How does one get the OS Product name programmatically?
- From: Peter Bierman <email@hidden>
- Date: Fri, 12 May 2006 14:04:45 -0700
At 11:39 AM -0700 5/10/06, David Litwin wrote:
From posts on macos-x-server I see that "sw_vers -productName" will
give me exactly what I am looking for (i.e. whether I am running Mac
OS X or Mac OS X Server), but I'd like to get this within my program
without having to shell out to a tool (it gets it from *some* API).
The tool _IS_ the API. The tool is available on all versions of Mac
OS X, and properly tests the files wherever they may be. Using the
tool is far less fragile than the other suggestions given in this
thread.
-pmb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden