• 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: Shane Stanley <email@hidden>
  • Date: Fri, 14 Mar 2003 08:50:00 +1100

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
_______________________________________________
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: 
 >reading a file >32Kb (From: James Burns <email@hidden>)

  • Prev by Date: Re: Mounting dave shares
  • Next by Date: Re: reading a file >32Kb
  • Previous by thread: Re: reading a file >32Kb
  • Next by thread: Re: reading a file >32Kb
  • Index(es):
    • Date
    • Thread