Re: Writing large scripts
Re: Writing large scripts
- Subject: Re: Writing large scripts
- From: Greg Strange <email@hidden>
- Date: Wed, 09 May 2001 15:19:14 -0500
on 5/9/01 11:13 AM, Jan Erik Mostrvm at email@hidden wrote:
>
I would like to ask those of you who write large programs, how do you organize
>
your code?
>
>
I mean: there is no problem creating a small script, but when I reach a
>
certain
>
limit it gets cumbersome to have everything in one file.
>
>
In a language like C, C++, Java, Pascal, Modula-2 etc I can divide the code
>
into
>
a number of files and compile each file by itself. Using applescript I can
>
write
>
a number of scripts and put them into separate files, so far so good. I can
>
also
>
write "classes" which is nice ... but how do you distribute the finished code?
>
>
In those languages above I link together the separate "files" into an
>
executable
>
file, but what can I do in AppleScript?
I would look at using the load script command. I'm not sure exactly what
you need form the "base" script but load script works wonders for a lot of
stuff that I do.
Greg Strange
--
Gather ye rosebuds while ye may,
Old Time is still a-flying,
And this fair bud that blooms today,
Tomorrow will be dying.