• 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: Problem with reading 4-byte floats from file on Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with reading 4-byte floats from file on Intel


  • Subject: Re: Problem with reading 4-byte floats from file on Intel
  • From: email@hidden
  • Date: Thu, 06 Dec 2007 13:27:19 -0500

Hi Mark,

Problem is already solved, I wrote a quick C command line program to do it.

But to reiterate, here it is in a nutshell (you can check the rest of the thread for more details):

I am reading a binary file, of which I know the format and some of the contents, to determine whether or not it has been stored in native or non-native endian. AppleScript reads the file as big-endian (swapping bytes, apparently) regardless of whether I run the script on PPC or Intel. I want AppleScript to read the file without byte swapping.

          - Rick


On 12/6/2007 12:06 PM, Mark J. Reed wrote:
On Dec 6, 2007 10:55 AM, <email@hidden> wrote:
I just wish that there was an easy way in AppleScript to read 4-byte
floats from a binary file written on an Intel Mac in Intel's own endian!

Low-level I/O is not really AppleScript's forte... What is the problem you're trying to solve? There might be another way...

--
Mark J. Reed <email@hidden>

_______________________________________________
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: Problem with reading 4-byte floats from file on Intel
      • From: Philip Aker <email@hidden>
    • Re: Problem with reading 4-byte floats from file on Intel
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: Problem with reading 4-byte floats from file on Intel (From: email@hidden)
 >Re: Problem with reading 4-byte floats from file on Intel (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Smile (Was: AppleScript4programmers)
  • Next by Date: Re: Problem with reading 4-byte floats from file on Intel
  • Previous by thread: Re: Problem with reading 4-byte floats from file on Intel
  • Next by thread: Re: Problem with reading 4-byte floats from file on Intel
  • Index(es):
    • Date
    • Thread