• 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: Read text error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Read text error


  • Subject: Re: Read text error
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 20 Nov 2003 10:59:42 -0800

On Nov 19, 2003, at 4:01 PM, webguide wrote:

I'm having a problem with a script which reads a text file before processing
it and inserting into a db.

The error I'm getting on the read is:

"Could not run the script because the text would be longer than the maximum
possible length"

A try block generates a -20013 error which I've been unable to find any
reference to.

The text I'm reading is 384k. Weird thing is that a few days ago it was
working fine with files of a similar length.

That's an internal Script Editor 1.x error that happens when you try to log something that's bigger than 20K. I'm guessing you have the event log open this time, but didn't before. Script Editor 2.0 doesn't have this restriction.

Is there a known limit of the size of a file which can be read?

There is, but it's 1 GB, so it'll be a while before you hit that.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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: 
 >Read text error (From: webguide <email@hidden>)

  • Prev by Date: Re: set variable to a command?
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: Read text error
  • Next by thread: Re: Filemaker found set
  • Index(es):
    • Date
    • Thread