Re: compactness of expression question
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