• 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: Machine information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Machine information


  • Subject: Re: Machine information
  • From: Chad Jones <email@hidden>
  • Date: Thu, 11 Sep 2003 11:10:52 -0700

Hi Greg,

At the moment we really don't have a good solution to the general problem of getting the information which ASP provides. Scripting ASP directly is problematic and the system_profiler command-tool is not guaranteed to be installed unless the user installed the BSD subsystem. Not only that but the format of the output returned by these processes is not guaranteed to be consistent between different versions.

Having said that solving your specific problem is actually quite simple. You can retrieve the computer's network name by using the CSCopyMachineName() API. This is an API which is provided from the core services framework and is documented in detail here: http://developer.apple.com/qa/qa2001/qa1078.html

Date: Wed, 10 Sep 2003 13:43:57 -0400
Subject: Machine information
From: Gregory Pelle <email@hidden>
To: email@hidden

I have been searching the archives and have not found any pointers on
how to do the following.

I am wanting to access the machine information sort of like what the
Apple System Profiler does, but I also need to know the machine name
(network name of the machine).

Is there a framework that I can use to read this information? I am not
wanting to make any changes, just reading.

Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Accessing a customer Objective C classes from Java
  • Next by Date: Notification Issue
  • Previous by thread: Re: Machine information
  • Next by thread: trsnparent background
  • Index(es):
    • Date
    • Thread