Re: 'Hierarchy' of libs?
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/>