Re: processor identification
Re: processor identification
- Subject: Re: processor identification
- From: Axel Luttgens <email@hidden>
- Date: Sun, 17 May 2009 14:40:04 +0200
Le 17 mai 09 à 12:14, Yvan KOENIG a écrit :
Hello
I'm writing a script transfering datas from an AppleWorks database
to a FileMaker one.
Alas, FileMaker behaves differently when it receive an AppleWorks
clipboard on a PPC machine or on a i386 one.
I have a workaround but it requires extra steps so I wish to be able
to drive the script behavior according to the host processor;
Is it a way to get the processor kind from the script ?
I assume that I may find it in some globals (those used by "About
this Mac" for instance).
Hello Yvan,
Perhaps are you more specifically interested in the "endiannes" of the
box, i.e. whether it is little endian or big endian one?
In which case
do shell script "sysctl -n hw.byteorder"
might prove sufficient.
It should return "1234" for little endian boxes (all Intel
processors), and "4321" for big endian boxes (default mode for PPCs).
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden