Re: Calling other scripts?
Re: Calling other scripts?
- Subject: Re: Calling other scripts?
- From: JJ <email@hidden>
- Date: Sun, 02 Dec 2001 13:13:34 +0100
>
What I need is to get a property from another script, or alternately call a
>
handler of that script that would return said property. I have a script,
>
"File++", that keeps track of what newsletter my father is currently
>
working on. I am making a script that will stuff and email it
>
automatically. I would like to have it ask "File++" for the current file
>
and go from there.
Script A, stored properties to snag:
property SomeInfo: "This is a test"
Script B, the snagger:
set Script_A to (load script path_to_script_A)
SomeInfo of Script_A
-- "This is a test"
Or, using handlers:
Script A
on TellMeSomething()
return "something"
end TellMeSomething()
Script B
set Script_A to (load script path_to_script_A)
tell Script_A to TellMeSomething()
-- "something"
JJ