• 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
Strings comparisons over 32K
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Strings comparisons over 32K
      • From: Christopher Nebel <email@hidden>
    • Re: Strings comparisons over 32K
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Setting folder icon
  • Next by Date: Re: Strings comparisons over 32K
  • Previous by thread: Request: Script for nullifying keys in Apple Pro Keyboard
  • Next by thread: Re: Strings comparisons over 32K
  • Index(es):
    • Date
    • Thread