On Sep 20, 2006, at 9:13 AM, Dan Smith wrote:
[email protected] writes:
Message: 14
Subject: Re: Determining whether Mac platform is Intel or PPC?
From: Tom <[EMAIL PROTECTED]>
Date: Wed, 20 Sep 2006 14:40:54 +0200
Perhaps I'm late here but why not simple use the following command
via
shell class:
/usr/sbin/system_profiler SPHardwareDataType|grep "CPU Type"
CPU Type: PowerPC G5 (2.2)
Not sure what's the reply on an Intel Mac but I don't think it is
G5...
May be an over simplification, but this ALWAYS works here (and it
works on Linux too):
Dim shUname As New Shell
Dim MyPlatform As String
shUname.Execute "uname -p"
If shUname.ErrorCode <> 0 Then
// Handle Error - is uname corrupt???
Else
MyPlatform = shUname.Result
End If
MyPlatform will either be "i386" or "powerpc".
HTH,
Tim
--
Tim Jones [EMAIL PROTECTED]
_______________________________________________
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>