• 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 one procedure from with in another
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calling one procedure from with in another


  • Subject: Re: calling one procedure from with in another
  • From: "Marc K. Myers" <email@hidden>
  • Date: Thu, 03 Jan 2002 03:27:24 -0500
  • Organization: [very little]

> Date: Wed, 02 Jan 2002 21:18:34 -0700
> Subject: Re: calling one procedure from with in another
> From: Gnarlodious <email@hidden>
> To: Robert Castles <email@hidden>,
> "'email@hidden'"
> <email@hidden>
>
> I don't really know what we are talking about here but I want to run a
> script from a script.
> What is the syntax for calling and passing variables? Is there a place that
> explains it?

Here's about the simplest example:

----- calling script -----
tell application "calledApp"
launch
displayIt("textToDisplay")
end tell
----- calling script -----

----- called script: application "calledApp" -----
on displayIt(theText)
activate
display dialog theText
end displayIt
----- called script: application "calledApp" -----

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[1/3/02 3:25:56 AM]


  • Prev by Date: Re: AppleScript and Email clients
  • Next by Date: iTunes
  • Previous by thread: Re: calling one procedure from with in another
  • Next by thread: Re: calling one procedure from with in another
  • Index(es):
    • Date
    • Thread