• 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: Various Qs about Intel and AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Various Qs about Intel and AppleScript


  • Subject: Re: Various Qs about Intel and AppleScript
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 2 Feb 2006 13:10:35 -0800


On Feb 2, 2006, at 12:35 PM, Paul Berkowitz wrote:

On 1/11/06 12:34 PM, "Christopher Nebel" <email@hidden> wrote:

On Jan 11, 2006, at 5:15 AM, jj wrote:

Will little-endian vs. big-endian affect AS code?

For example, if I compile an alias reference in a PowerPC machine, will it fail in the Intel one?

Or should I write/read Unicode text being aware of endian differences?

In general, it Just Works™ -- scripts, compiled or otherwise, will work between Intel and PowerPC systems. It's possible to write code that won't work correctly, but you have to work at it -- something like doing your own byte-to-word transforms.


To answer the particular question of "read" and "write", they always read and write big-endian data -- we made it that way so existing data files would work on Intel systems. You don't have to do anything special.

Chris, will everything also be OK with such constructs as 'write as date', 'read as date' an the other "self-defining" formats (as record, as list), at least as long as the same computer does the reading and writing?

Yes. It'll even be OK if different computers do the reading and writing. That's what "always read and write big-endian data" means -- the on-disk data format is consistent.



--Chris Nebel AppleScript and Automator Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Various Qs about Intel and AppleScript (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Various Qs about Intel and AppleScript
  • Next by Date: Re: Q: GraphicsConverter Paste At (format for position?)
  • Previous by thread: Re: Various Qs about Intel and AppleScript
  • Next by thread: Re: Various Qs about Intel and AppleScript
  • Index(es):
    • Date
    • Thread