On Sep 20, 2006, at 10:53 AM, Norman Palardy wrote:
unless of course uname fails and you never set myPlatform
Not my problem. =)
Actually it is no worse than the code I modified... it would still
return an empty string. If uname doesn't work, then a second method
could be attempted including the "system_profiler -xml" you posted.
The problem (for me) is that I don't use XML in my applications, and
including the XML plugin increases the executable size quite a bit.
I would actually use:
/usr/sbin/system_profiler SPHardwareDataType|grep "CPU Type"
CPU Type: PowerPC G5 (2.2)
And then use InStr to determine if PowerPC is returned or something
else... and assume that anything else is an Intel processor.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>