• 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: "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/
}


  • Follow-Ups:
    • Re: 'Hierarchy' of libs?
      • From: "Serge Belleudy-d'Espinose" <email@hidden>
  • Prev by Date: Re: How to set Startup disk in OS 8.1 & 8.0
  • Next by Date: Re: 'Hierarchy' of libs?
  • Previous by thread: Re: 'Hierarchy' of libs? (solved!)
  • Next by thread: Re: 'Hierarchy' of libs?
  • Index(es):
    • Date
    • Thread