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

Problem with reading 4-byte floats from file on Intel


  • Subject: Problem with reading 4-byte floats from file on Intel
  • From: email@hidden
  • Date: Mon, 03 Dec 2007 12:09:51 -0500

Hello folks,

Well, the subject line says it all.

I have an Applescript that reads a series of floats (4-byte) from a binary file. This script works fine on PPC, but doesn't read anything at all on my MacBook.

Here's a brief snippet. If I run this in Script Editor on my G5 Mac, and look at the Event Log window, I can see my data appear after the "read" line has been executed. On the Intel Mac, no data is printed to the event log. If I change "small real" to "real", I can see data in the Intel Mac's event log, but it is 8-byte float data.

open for access file_alias
set floatList to read file_alias from 0 for 512 as small real
close access file_alias

Any ideas?

As always, thank you very much!

         - Rick
_______________________________________________
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: email@hidden
    • Re: Problem with reading 4-byte floats from file on Intel
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: how to refer to environment variable in a Terminal do script?
  • Next by Date: Re: Problem with reading 4-byte floats from file on Intel
  • Previous by thread: Re: how to refer to environment variable in a Terminal do script?
  • Next by thread: Re: Problem with reading 4-byte floats from file on Intel
  • Index(es):
    • Date
    • Thread