Re: calling one procedure from with in another
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]