• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: processor identification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: processor identification
      • From: Yvan KOENIG <email@hidden>
References: 
 >processor identification (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: processor identification
  • Next by Date: Re: processor identification
  • Previous by thread: Re: processor identification
  • Next by thread: Re: processor identification
  • Index(es):
    • Date
    • Thread