• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: is it possible to load a script library with a creation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: is it possible to load a script library with a creation (From: "Arthur J Knapp" <email@hidden>)

  • Prev by Date: Re: Default Folder (was Re: bugs, bugs, bugs)
  • Next by Date: Re: Where am I?
  • Previous by thread: Re: is it possible to load a script library with a creation
  • Next by thread: Re: wishlist: user-declared parameter labels without "given"
  • Index(es):
    • Date
    • Thread