Re: preflighting a file
Re: preflighting a file
- Subject: Re: preflighting a file
- From: Shane Stanley <email@hidden>
- Date: Tue, 19 Feb 2002 22:54:06 +1100
On 19/2/02 8:43 PM +1000, Emmanuel, email@hidden, wrote:
>
At 9:56 AM +0100 19/2/02, Shane Stanley wrote:
>
>
> The "is in" comparison fails with strings greater than 32K.
>
>
Waow! Great bug!
>
>
Here (AS 1.6), ' "a" is in x ' with x > 32K does not error! It just returns
>
an erroneous result! (For instance ' "a" is x ' triggers the error).
>
>
Thanks for pointing this out!
I'm not sure it's a bug (I get the same wrong result), so much as a
manifestation of the known problem of doing comparisons with strings >32K;
presumably "is in", "contains", ">", "=", etc, all use the same routines
that are limited to 32K.
>
>
Note that the "offset" method that I have recommended does not seem to know
>
this bug.
Yes; that uses a scripting addition (which probably explains why it's
slower).
>
>
(Smile has been using "offset" as its "Find" engine, and it used to work on
>
huge strings).
Using TIDs there probably wouldn't win you many friends ;-)
--
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.