Re: 'Hierarchy' of libs?
Re: 'Hierarchy' of libs?
- Subject: Re: 'Hierarchy' of libs?
- From: "Arthur J Knapp" <email@hidden>
- Date: Wed, 07 Feb 2001 11:07:04 -0500
>
Date: Wed, 7 Feb 2001 11:29:39 +0100
>
From: "Serge Belleudy-d'Espinose" <email@hidden>
>
Subject: 'Hierarchy' of libs?
>
Given:
I feel like I'm back in geometry class...
>
my_handler() is a handler of the compiled script my_lib1
>
>
my_lib2 is a compiled script that begins with
>
>
property parent: load script file "my_lib1"
>
>
my_script is a script that begins with
>
>
property parent: load script file "my_lib2"
>
>
I've tried to use my_lib1's my_handler inside my_script, without success.
>
Is it possible anyway, with different techniques?
I implemented this and had no problem simply calling the handler:
-- script file my_lib1
--
on my_handler()
return "Hello World"
end my_handler
-- script file my_lib2
--
property parent : load script alias "Commander:Desktop Folder:my_lib1"
-- script file my_script
--
property parent : load script alias "Commander:Desktop Folder:my_lib2"
my_handler() -- > "Hello World"
Are you using a script editor other than Apple's? Often the third-party
editors seem to treat script objects rather differently.
--
{
Arthur J Knapp, of STELLARViSIONs ;
http://www.STELLARViSIONs.com ;
mailto:email@hidden ;
http://developer.apple.com/techpubs/
macos8/InterproCom/AppleScriptScripters/
AppleScriptLangGuide/
}