Re: Read text error
Re: Read text error
- Subject: Re: Read text error
- From: Richard Morton <email@hidden>
- Date: Thu, 20 Nov 2003 16:55:11 +1100
On Thursday, November 20, 2003, at 11:01 AM, webguide wrote:
G'day folks,
Yo Kim,
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"
Something tells me it's not a read problem. That sounds suspiciously
like the error I've had when trying to return a large result to the
Script Editor result window. Something similar is returned in
32k-limited editors when trying to compile&/or run too large a script.
A try block generates a -20013 error which I've been unable to find any
reference to
That's not in MacErrors.h. I checked this version:
<"file://localhost/System/Library/Frameworks/CoreServices.framework/
Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/
MacErrors.h">
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.
Also suggests it's not a read problem.
2 questions - is there a known limit of the size of a file which can be
read?
There is, I think, but it's huge. I'm sure I've seen mention here of
reading MB length files OK.
and secondly, does anyone have any suggestions as to why it's being
inconsistent.
Try a test script that does nothing but reads the file using the same
code you're currently using to read it - it's probably that crappy read
handler you're using. ;-). If you have a backup of the last version
(that worked) of your main script, try that & see if it still works.
HTH,
Bruce L Osis
_______________________________________________
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.