Re: How does one get the OS Product name programmatically?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com -pmb _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter Bierman