Re: Passing a variable to another script or Mac
Re: Passing a variable to another script or Mac
- Subject: Re: Passing a variable to another script or Mac
- From: Arthur J Knapp <email@hidden>
- Date: Wed, 11 Jul 2001 10:19:05 -0400
>
Subject: Passing a variable to another script or Mac
>
From: "Bill Lawrence/GV/ADSINC" <email@hidden>
>
Date: Tue, 10 Jul 2001 16:32:39 -0500
>
I'm looking for a way for an Applescript to pass a variable (a list of
>
numbers) to another script on another Mac.
Treat the other script as a scriptable application, and send it a
command.
>
The AppleScript on the first Mac knows that there is a variable called
>
mt_fileIDList that contains {9773, 9774, 9775}. I want to have the first
>
script tell another script on another Mac to run, this part is easy, but
>
then I want the list contained in mt_fileIDList to be passed to the second
>
AppleScript on the second Mac.
-- Script Application 1
set theLocalVariable to {9773, 9774, 9775}
tell application "Script Application 2"
activate
PassVar( theLocalVariable )
end tell
-- Script Application 2
on PassVar( theValue )
-- do something with theValue
end
Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden
Hey, check out:
http://www.natural-innovations.com/as/