How do you get two scripts to communicate?
How do you get two scripts to communicate?
- Subject: How do you get two scripts to communicate?
- From: James Burton <email@hidden>
- Date: Thu, 1 Jan 2004 14:58:45 -0700
I read somewhere that one applescript can call another's handler,
However, I have tried the following:
Script named "sayhi" and saved as an application:
----------
on sayhi(aname)
set tt to "hi, " & aname
return tt
end sayhi
----------
a separate Script named "comm.scpt"
----------
tell application "sayhi"
set my greet to sayhi("jim")
end tell
return greet
----------
The idea is to run comm.scpt, which in turn runs the "sayhi" handler in
sayhi, and returns the greeting. However, this script ends with an
error "sayhi got an error: Connection is invalid."
Someone please enlighten me on the proper way to get two applescrpt
apps to communicate :-)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.