Re: Problem with reading 4-byte floats from file on Intel
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