FROM : matt jaffa
DATE : Fri Jul 28 17:53:15 2006
The tricky part is I am looking for a solution that works all the way
back to 10.2 and above. The command line system_profiler doesn't exist
on 10.2. sysctl doesn't provide a nice enough readable string. The
system_profiler for 10.4 provides a great Machine Name string that
describes the machine type. So unfortunately it looks like I am going
to have to translate the MacBookPro1,1, etc. on my own.
On 7/28/06, Shawn Erickson <<email_removed>> wrote:
>
> On Jul 28, 2006, at 7:51 AM, matt jaffa wrote:
>
> > Hi,
> >
> > Is there any cocoa api or other api that can get what type of machine
> > it is. i.e. MacBook Pro, Powerbook, etc. I can easily get the machine
> > model like MacBookPro1,1.
>
> I should likely also mention using system_profiler and parsing the
> output.
>
> For example "system_profiler -xml SPHardwareDataType" (-xml gives you
> a plist) and pull out the "machine_name" entry.
>
> -Shawn
>
DATE : Fri Jul 28 17:53:15 2006
The tricky part is I am looking for a solution that works all the way
back to 10.2 and above. The command line system_profiler doesn't exist
on 10.2. sysctl doesn't provide a nice enough readable string. The
system_profiler for 10.4 provides a great Machine Name string that
describes the machine type. So unfortunately it looks like I am going
to have to translate the MacBookPro1,1, etc. on my own.
On 7/28/06, Shawn Erickson <<email_removed>> wrote:
>
> On Jul 28, 2006, at 7:51 AM, matt jaffa wrote:
>
> > Hi,
> >
> > Is there any cocoa api or other api that can get what type of machine
> > it is. i.e. MacBook Pro, Powerbook, etc. I can easily get the machine
> > model like MacBookPro1,1.
>
> I should likely also mention using system_profiler and parsing the
> output.
>
> For example "system_profiler -xml SPHardwareDataType" (-xml gives you
> a plist) and pull out the "machine_name" entry.
>
> -Shawn
>
| Related mails | Author | Date |
|---|---|---|
| matt jaffa | Jul 28, 16:51 | |
| Shawn Erickson | Jul 28, 16:52 | |
| Shawn Erickson | Jul 28, 16:58 | |
| matt jaffa | Jul 28, 17:53 | |
| Michael Watson | Jul 28, 18:17 | |
| Chris Vetter | Jul 28, 18:27 | |
| Shaun Wexler | Jul 28, 22:58 | |
| Shaun Wexler | Jul 28, 23:06 | |
| Shawn Erickson | Jul 28, 23:18 | |
| Shaun Wexler | Jul 29, 23:14 |






Cocoa mail archive

