• 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: compactness of expression question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compactness of expression question


  • Subject: Re: compactness of expression question
  • From: Steven Angier <email@hidden>
  • Date: Fri, 18 Jan 2002 09:05:37 +1100
  • Organization: Macscript.com

billp wrote:

> Steven,
>
> Thanks for the solution. I am up against my 32k limit in ScriptEditor
> so every character counts now. The reason I set each global inside
> the various if statements before was to not cause AS to set a global
> for something it may not have measured. I was thinking it was more
> efficient memory-wise.

I believe that (and others might correct me if I am wrong) but AppleScript
doesn't allocate any memory for a variable until it is defined. When you
declare a whole list of variables with either a "global" or a "local"
statement, AppleScript merely adds the symbol names to it's internal scope
tables.

And as for that 32k limit. I urge you to get Script Debugger (a demo is
available from http://www.latenightsw.com). It is an outstanding product
which is actively supported by its author.

Steven Angier
Macscript.com


References: 
 >Re: compactness of expression question (From: billp <email@hidden>)

  • Prev by Date: RE: [OT] Software design, beta testing, and the like
  • Next by Date: Re: search and replace question
  • Previous by thread: Re: compactness of expression question
  • Next by thread: Re: compactness of expression question
  • Index(es):
    • Date
    • Thread