• 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: Calling other scripts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Calling other scripts?
  • Next by Date: Re: Jon's Commands Reference
  • Previous by thread: Re: Calling other scripts?
  • Next by thread: Re: Calling other scripts?
  • Index(es):
    • Date
    • Thread