• 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: reading a file >32Kb
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading a file >32Kb


  • Subject: Re: reading a file >32Kb
  • From: James Burns <email@hidden>
  • Date: Thu, 13 Mar 2003 20:12:25 -0500

I'm sorry, I'm a moron. I got my Mb mixed up with my Kb. (see below)

Yep, but I said 32Mb, not K.


To make sure that I wasn't mistaken with my comments above, I just created a rather large text file with the following specs:
-- BBEdit says number of lines: 244,831
-- BBEdit says number of characters: 23,182,730
-- Finder says size is: 22.1MB (23,184,440 bytes)

Yeah, but again, that's under 32Mb

You're right, I'm confused... I blame the US Government for not promoting the metric system...

Shane Stanley (and others...) figured it out:

On 14/3/03 6:23 AM +1000, James Burns, email@hidden, wrote:

I'm experiencing a weird problem, and I'm wondering if it's a bug (or a
weird throwback to the old 32kb text limit).

What I'm doing is:

1/ Reading a text file.
2/ Testing if it contains a string
3/ If so, do some stuff, otherwise, pop up a dialog.

The weird thing is that I can see that the file contains the string,
but fails the test. Then I noticed that the file is 42K and I thought,
"Don't tell me that I can't read a file larger than 32Kb into a
variable!!"

I won't tell you that because it's not true. However, AppleScript's
comparison operators fail with >32K, so the error is appearing in this line:

if temp contains "SaveRGBImagesPrefix" then -- and my >32Kb file DOES

--
Shane Stanley, email@hidden

So it's the "contains" operator that fails...

Thanks, everyone...


-----
James Burns
http://www.jamesburnsdesign.com
_______________________________________________
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: 
 >Re: reading a file >32Kb (From: Larry McMunn <email@hidden>)

  • Prev by Date: Re: Determining item number matching "x" in a list
  • Next by Date: Re: reading a file >32Kb -- no 32MB!!!
  • Previous by thread: Re: reading a file >32Kb
  • Next by thread: Re: select in aw6
  • Index(es):
    • Date
    • Thread