Re: Passing params to network script object-HELP!
Re: Passing params to network script object-HELP!
- Subject: Re: Passing params to network script object-HELP!
- From: "Arthur J Knapp" <email@hidden>
- Date: Sat, 14 Apr 2001 14:09:39 -0400
>
Date: Fri, 13 Apr 2001 12:47:17 -0500
>
Subject: Passing params to network script object-HELP!
>
From: Steve Kump <email@hidden>
>
Well...I'm almost there on this, my trickiest script yet.
I'm currently working on my trickest script yet, so I sympathize. :)
>
... Now, I need to pass that script objects, the
>
parameters I just passed to the script application.
>
below is the script application that receiveds the filePath and PicturePath
>
params from the starting script. I need to get those params into the
>
"runthisScript" script object so they can be used by the networkRun script.
>
on run {filePath, picturePath}
>
tell application "Network Script Runner" of machine "B"
>
networkRun(runThisScript)
>
end tell
>
end run
>
>
script runThisScript
>
tell application "Finder"
>
activate
>
display dialog filePath
>
end tell
>
end script
Why not add properties to runThisScript?
>
on run {filePath, picturePath}
set filePath of runThisScript to filePath
set picturePath of runThisScript to picturePath
>
tell application "Network Script Runner" of machine "B"
>
networkRun(runThisScript)
>
end tell
>
end run
>
script runThisScript
property filePath : missing value
property picturePath : missing value
>
tell application "Finder"
>
activate
>
display dialog filePath
>
end tell
>
end script
Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden
Hey, check out:
http://home.earthlink.net/~eagrant/