• 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: 'Hierarchy' of libs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'Hierarchy' of libs?


  • Subject: Re: 'Hierarchy' of libs?
  • From: Bill Cheeseman <email@hidden>
  • Date: Thu, 08 Feb 2001 07:10:06 -0500

on 2/8/01 5:04 AM, Serge Belleudy-d'Espinose at email@hidden wrote:

> lib2 saved as compiled script at the same place:
>
> script object2
>
> property parent : (load script file ("" & (path to scripts folder) &
> "lib1"))'s object1
>
> end script

I don't have time to try this, but I think you probably shouldn't use a
script object in lib2. Also, I don't think you should use property "parent"
in lib2. Instead, just declare a property "myLib" (or whatever) in lib2.

Also, I think you might not have to load lib1's object1, but only load lib1
itself.

Like so, in lib2:

property myLib : load script (path to scripts folder as string) & "lib1"

Then in your client script, you would

tell object1 of myLib to ....

But, like I said, I haven't had time to test it.


-
Bill Cheeseman, Quechee, Vermont <mailto:email@hidden>

The AppleScript Sourcebook
<http://www.AppleScriptSourcebook.com/>
Vermont Recipes-A Cocoa Cookbook
<http://www.stepwise.com/Articles/VermontRecipes/>


  • Follow-Ups:
    • Re: 'Hierarchy' of libs?
      • From: "Serge Belleudy-d'Espinose" <email@hidden>
References: 
 >Re: 'Hierarchy' of libs? (From: "Serge Belleudy-d'Espinose" <email@hidden>)

  • Prev by Date: Re: Prefs in a loadable ircle script...
  • Next by Date: Re: To Claris Emailer users
  • Previous by thread: Re: 'Hierarchy' of libs?
  • Next by thread: Re: 'Hierarchy' of libs?
  • Index(es):
    • Date
    • Thread