How to tell Type of CPU?????
Mark Schonewille
m.schonewille at economy-x-talk.com
Wed May 2 07:26:36 EDT 2007
Hi,
In verbose style:
on foo
if the platform is "MacOS" then -- osx or os9
if char 1 of the version is 1 then -- osx
if the processor is "x86" then -- intel
return "You are on an intel Mac"
else
return "You are in a PPC Mac"
end if
else
return "This machine doesn't run OSX"
end if
else
return "This is no Mac"
end if
end foo
(untested)
Best,
Mark
--
Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Get your store on-line within minutes with Salery Web Store software.
Download at http://www.salery.biz
Op 2-mei-2007, om 12:52 heeft Dave het volgende geschreven:
> Hi,
>
> How can I tell the type of machine the stack is running on?
>
> I've tried "the machine" - this returns "unknown".
>
> the "platform" returns "MacOS" - (incorrectly since I'm actually
> running under "MacOS X"
>
> I need to tell if:
>
> 1. I'm Running Under Mac OS X or Windows and
> 2. If Mac OS X, if I'm running on an Intel or PowerPC
>
> Thanks a lot
> All the Best
> Dave
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list