Re: preflighting a file
Re: preflighting a file
- Subject: Re: preflighting a file
- From: Deivy Petrescu <email@hidden>
- Date: Tue, 19 Feb 2002 12:26:13 -0500
At 7:56 PM +1100 2/19/02, Shane Stanley wrote:
The "is in" comparison fails with strings greater than 32K. Run this:
set n to 10
set x to "abcdefghijklmnop"
repeat n times
set x to x & x
end repeat
{count of x, "a" is in x}
then change n to 11 and run it again.
Yes?
--
Shane Stanley, email@hidden
_______________________________________________
Very nice!
However:
set n to 11
set x to "abcdefghijklmnop"
repeat n times
set y to x & x
set x to y
end repeat
set l to offset of "p" in x
if x contains ("p") then beep -- no beep
l --16
and...
set n to 11
set x to "abcdefghijklmnop"
repeat n times
set y to x & x
set x to y
end repeat
if x contains (y) then beep -- beeps
So there must be a ratio somewhere in there!
This does not take away the beauty of the above example!
--
Deivy Petrescu
http://www.dicas.com
Tips for Mac
dicas para Mac
_______________________________________________
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.