• 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
Re: Size restriction on a variable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Size restriction on a variable?


  • Subject: Re: Size restriction on a variable?
  • From: John W Baxter <email@hidden>
  • Date: Tue, 31 Jul 2001 22:20:27 -0700

At 23:12 -0500 7/30/01, Greg Strange wrote:
>I know this has probably been covered at some point, but is there a size
>limit on a variable? I mean can it be over 32K? If so, how big over 32K?
>
>I have tried and I am getting errors but it may be due to the fact that I am
>trying to manipulate a file.

The basic limit is memory. However, there are, for example, string
operations which have trouble with strings longer than 32K (bytes, I think
rather than characters). I've routinely passed 86K strings from
AppleScript to an app of mine where the string was manipulated and back to
AppleScript which determined whether the manipulation was right or not.
(In the latter part of that, I clearly wasn't running into the limit I
mentioned, since the manipulations...some quite far into the string, were
done correctly. It was also several AppleScript versions ago...around
1995.)

--John

--
John Baxter email@hidden Port Ludlow, WA, USA


References: 
 >Size restriction on a variable? (From: Greg Strange <email@hidden>)

  • Prev by Date: Re: Script Applet rejects first handler call
  • Next by Date: Re: Converting "scpt" resource to text
  • Previous by thread: Size restriction on a variable?
  • Next by thread: Re: Size restriction on a variable?
  • Index(es):
    • Date
    • Thread