Re: Writing large scripts
Re: Writing large scripts
- Subject: Re: Writing large scripts
- From: email@hidden
- Date: Mon, 14 May 2001 10:52:53 -0700
>
>>>My main problem isn't really with the script size (I haven't counted
but I don't think I have many scripts with more than 500 lines). My problem
has been how to organize them (I've always liked the organization abilities
of languages like Modula-2, Java, Ada, etc).
Yes, that's always a problem. You may want to look at Script Base from
Main Event.
It's a persisent database that allows you to store scripts (as well as
nearly anything else) as database objects in labeled "drawers."
Once you get the hang of it it's pretty easy to bring order to chaos.
I've also heard that Late Night Software has some system for using
includes, but I don't know how portable it is.
Anyway, I've started to reorganize things so it becomes easier to reuse and
maintain my scripts.
>
>>>I did a lot of Hypercard stuff 3-5 years ago but lately I haven't dared
to do anything since I didn't know if would work in the next OS release.
Yea that's really a shame. IMHO Hypercard offers the most flexible and
easiest to use front-end for appleScript. It's easy to organize large
projects between Stack, Background, Card, button and field scripts and you
get inheritence for free.
ES