Re: Maximum script lenght ?!??
Re: Maximum script lenght ?!??
- Subject: Re: Maximum script lenght ?!??
- From: "Arthur J Knapp" <email@hidden>
- Date: Sat, 27 Jan 2001 18:02:50 -0500
>
Date: Sat, 27 Jan 2001 12:46:54 -0600
>
Subject: Re: Maximum script lenght ?!??
>
From: JollyRoger <email@hidden>
>
on 1/27/2001 11:26 AM, giZm0 at email@hidden wrote:
>
> i was writing my FireFly script (www.mac-fr.org/firefly) when Script editor
>
> suddenly refused to continue saying that the script had the maximum possible
>
> lenght.
>
>
>
> My question is : is there a way to disable this fonction since i cant make
>
> too scripts that run at the same time (since i am using ircle's loading
>
> features). Does MacOS just wont run a too long script ?
>
>
The Mac OS can run large scripts with no problem. But Script Editor is
>
using the Text Edit toolbox to handle the content of it's windows, and edit
>
fields were only designed to hold up to 32 K of text.
>
>
> Oh, and by the way, does Smile has a lenght limit too ?
>
>
Smile has no length limit. :)
Right.
So these are some of your options, in no particular order:
Use another script editor, such as Smile, (which I think is still
free), or Script Debugger 2.0, (a recent winner of the Macworld Editors'
Choice Award (Eddy)).
<
http://www.tandb.com.au/smile/>
<
http://www.latenightsw.com/sd2.0/>
If you are noticing "sections" of your script where you are
performing the same tasks over and over again, you may want to
encapsilate the repetitive work into handlers.
You say that you can't run 2 scripts at the same time, but the
scripting addition command "load script" allows you to do just that:
property Script01 : load script alias "HD:folder:script 01"
property Script02 : load script alias "HD:folder:script 02"
property Script03 : load script alias "HD:folder:script 03"
on run
run Script01
run Script02
run Script03
end
Finally, perhaps you have a lot of comments in your script.
Although these do not affect the running of the script, they do
contribute to the 32k limit.
OK, if you are really really desparate, you might even consider
using smallar variable names where ever possible. ;-)
(French words tend to have too many letters in them anyway). ;-)
--
{
Arthur J Knapp, of STELLARViSIONs ;
http://www.STELLARViSIONs.com ;
mailto:email@hidden ;
how many?
zero.
are you sure?
i counted twice.
}