• 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: Big numbers (again) and complex routine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Big numbers (again) and complex routine


  • Subject: Re: Big numbers (again) and complex routine
  • From: Emmanuel <email@hidden>
  • Date: Tue, 11 Mar 2003 18:48:43 +0100

At 12:16 PM +0100 07/03/03, julifos wrote:
Hi!

I must work with big amounts of data, and I'm having some problems with
read-dowhatever routine:

file_ref is file opened for access
"starting_at" uses to be 1
The problem is with fEoF (eof of file opened for access). If we are talking
about a 800MB file, it will throw an error "can't make fEoF into an
integer".

I've been giving an eye to the Standard Addns' dictionary, whence the present late contribution to JJ's thread.

I see that "read" is supposed to accept "double integers" as the "from" and the "for" parameters.

But I cannot have it work:

-----------------------
read f for (20000000000 as double integer)
read f for ("20000000000" as double integer)
read f for (double integer (20000000000))
...
-----------------------
nothing I could think of works.

Not surprisingly, AppleScript is not able to store a "double integer" variable:

-----------------------
set x to 20000000000 as double integer
class of x --> real
-----------------------

but, more surprisingly, the Apple Event Manager itself seems to be unwilling to accept the double integer (aka "comp") as a parameter.

So finally I would humbly propose that "read" is bogus - or the dictionary lies, it's up to Apple.

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Big numbers (again) and complex routine (From: julifos <email@hidden>)

  • Prev by Date: Re: Procedure Problem
  • Next by Date: Getting Multiple Returns From A Dialog
  • Previous by thread: Re: Big numbers (again) and complex routine
  • Next by thread: Re: Big numbers (again) and complex routine
  • Index(es):
    • Date
    • Thread