On Sep 20, 2006, at 12:03 PM, Phil M wrote:

On Sep 20, 2006, at 10:53 AM, Norman Palardy wrote:

unless of course uname fails and you never set myPlatform

Not my problem.  =)

LOL ... sure ... irresposible programmers :)

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.

Ahh yes ... that it would

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.

or "machine"

I suppose you could use "which" to determine if the commands were present and then use the one that was present

_______________________________________________
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>

Reply via email to