"sysa" - funny behavier...

Hi Folks,

detecting the processor is quite easy:

set processor to system attribute "sysa"
display dialog processor
--10 intel
--2 ppc

when running (on intel) I get processor=10, but when I put the scpt into a dmg I get processor=2

Does anybody know how to solve this behavier? Even when I run the AS File out of a dmg I want
the correct answer…

Thanks for your time and your help!


HI Folks,

solved - when saving as application bundle I get the correct result…

Thanks for your time


Hi Stefan,

I have no idea, but there is another way to detect the processor architecture:
The file /System/Library/CoreServices/boot.efi exists only on Intel machines.
the corresponding file only on PPC machines is /System/Library/CoreServices/BootX