Re: is it possible to load a script library with a creation
Re: is it possible to load a script library with a creation
- Subject: Re: is it possible to load a script library with a creation
- From: Greg Strange <email@hidden>
- Date: Sat, 31 Mar 2001 22:18:52 -0600
on 3/31/01 4:43 PM, Arthur J Knapp at email@hidden wrote:
>
>
> Just tried to your examples for size, and I guess it comes down to a toss up
>
> of which of :
>
>
> set Lib to run script (alias "MacHD:Init & Load") with parameters {1, 2, 3}
>
>
> set Lib to load script file (alias "MacHD:Init & Load")
>
> tell Lib to initialize(startingParameters)
>
>
I vote for option 2. :)
>
Since I started making what I call AppleMods, I have been using method 2 and
the only reason I have is because in my scripts I am trying to do some
error-checking and the second method was more reliable for allowing the
error messages to bubble up into method 2 wrapped in an try block. Also, if
you pass a list that gets parsed apart inside the script you wouldn't have
to go back and change the code that calls your script as you would in option
1.
Just my two cents.
Greg
--
I am commencing an undertaking, hitherto without precedent,
and which will never find an imitator. I desire to set before
my fellows the likeness of a man in all the truth of nature, and that man
myself.
-Rousseau, Confessions, Part I