• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How does one get the OS Product name programmatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How does one get the OS Product name programatically? (From: "David Litwin" <email@hidden>)

  • Prev by Date: Re: How does one get the OS Product name programatically?
  • Next by Date: Re: OpenDirectory: creating a LocalCachedUser?
  • Previous by thread: Re: How does one get the OS Product name programatically?
  • Next by thread: re: How does one get the OS Product name programatically?
  • Index(es):
    • Date
    • Thread