Re: Writing large scripts
Re: Writing large scripts
- Subject: Re: Writing large scripts
- From: email@hidden
- Date: Thu, 10 May 2001 11:53:48 -0700
Before I go on to my suggestion just a quick warning... in the past there
have been memory leaks associated with load script and run script. If you
have a large and complex script that repeatedly calls a loaded script or
loads several different scripts you may encounter memory problems,
especially on older systems. I haven't tested on 9 or 9.1.
My suggestion is to try Hypercard, particularly if you've used it before
you learned AppleScript.
Although in hyperCard the scripts themselves have an even smaller maximum
size than the script editor (something like 12k, I think) In Hypercard you
have the ability to create any number of objects (buttons,fields) that can
store your scripts. The nice thing about using Hypercard is that you get a
relatively flexible interface with a virtually unlimited number of objects
to store data and scripts, plus you get inheritence for free so you can
avoid the memory leaks associated with load script and run script.
I have one large project that I've been using for years now that handles
hundreds of production tasks and uses Hypercard for the user inferface and
for storing scripts.
It's really a remarkable tool. It's a shame Apple isn't planning to
support it.
ES