Strings comparisons over 32K
Strings comparisons over 32K
- Subject: Strings comparisons over 32K
- From: Philippe GRUCHET <email@hidden>
- Date: Sat, 19 Apr 2003 04:47:21 +0200
Hello,
10.2.5 / AppleScript.component 1.9.1
When trying some string comparisons in memory, there's no error message
when data > 32 Kb, but it doesn't work!
A basic example using "Satimage.osax":
--------------------------------------------------------
set theBuffer to contents of thisWindow
try
if "blah" is in theBuffer then
change "blah" into "it's a word" in theBuffer
end if
on error
log "error"
end try
--------------------------------------------------------
=> Only works if length < 32768
=> if length > 32767, only works by removing the conditional string
comparison 'if "blah" is in theBuffer then'
Do you confirm this persistent 32K limit (32767 characters/1024)?
If yes, what's the reason of this old limitation?
TIA!
Philippe/SVM 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.