Re: AppleScript's script size limit
Re: AppleScript's script size limit
- Subject: Re: AppleScript's script size limit
- From: has <email@hidden>
- Date: Thu, 31 Oct 2002 20:04:16 +0000
christian vick wrote:
>
I'm just running into the same issue! I have a script which compiles with
>
162 KB but not with 168 KB (error -108).
Source code length isn't an issue - it's possible to compile much longer
code than that [1]. Rather, it appears dependent on the source code's
complexity. Some internal stack/array used to store tokenised code maybe;
who knows? There could be any number of (complex) interactions responsible,
so I'm not sure you'd ever pin down an "exact" cause based on casual
observation alone. And since none of us have access to the source it's not
like we can run it through a debugger and see what's going wrong... :/
But then, this particular problem is really the simplest to avoid. Hive off
sections of code into separate modules, then use 'property fooLib : load
script alias "path to fooLib"' to load 'em all up again. I'm sure it's been
well discussed.
<wistful>If only dumb hardwired limits in the runtime (like tokenising
strings into lists over ~4000 items or comparing text over 32KB) could be
worked around _half_ as easily...</wistful>
has
[1] e.g. Try compiling some very long strings. You can go much longer.
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
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.