Re: Machine information
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.