Re: AppleScript's script size limit
Re: AppleScript's script size limit
- Subject: Re: AppleScript's script size limit
- From: christian vick <email@hidden>
- Date: Fri, 01 Nov 2002 15:17:38 +0100
>
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].
Yes, I've illustrated exactly this in my response. A script with many
handlers errors earlier than one without handlers (which probably 'never'
errors).
>
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.
Indeed. Some recommend that also as a well workaround method for SE's 32 KB
limit.
In my experience, using libraries costs in the end the same time as using
none.
If you change something in a library, some of your older scripts may not
behave correctly since they rely on the old behavior.
If you change something and your scripts doesn't load the libs at runtime,
then you have to open and recompile every script.
You can use a lib for code that really doesn't change, that's my log
library. Everything else is subject to change (the next AS update usually
takes care of that).
Of course, i had no choice and so i have put the most independed part into a
lib. Now, search & replace must be made in both scripts. And it makes my
final build process more complicated than necessary.
Greetings
Christian Vick
_______________________________________________
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.