Identify Intel processor under 2.6.1

Scott Morrow scott at elementarysoftware.com
Wed Oct 31 02:56:15 EDT 2007


Mark,
  This solution works brilliantly in 2.8.1 - unfortunately for some  
reason it always seems to return "false" in 2.6.1 no matter the  
processor.  I don't understand the logic behind it so I'm no good to  
trouble shoot here.
Thanks,
Scott

On Oct 30, 2007, at 3:47 AM, Mark Smith wrote:

> Scott, you can test for 'endianness";
>
> function isIntel
>   return (char 1 of (binaryencode("I",1)) is not null)
> end isIntel
>
> Best,
>
> Mark
> 	
> On 30 Oct 2007, at 06:32, Scott Morrow wrote:
>
>> Is there a way to query for an Intel Mac when running under rev  
>> 2.6.1 without using "the processor" function which seems to report  
>> incorrectly?
>>
>> -Scott Morrow
>>
>> Elementary Software
>> (Now with 20% less chalk dust !)
>> web     http://elementarysoftware.com/
>> email   scott at elementarysoftware.com



More information about the use-livecode mailing list