• 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
How do you get two scripts to communicate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: How do you get two scripts to communicate?
      • From: Graff <email@hidden>
    • Re: How do you get two scripts to communicate?
      • From: Andrew Oliver <email@hidden>
References: 
 >Re: adding icon in Xcode AppleScript Studio (From: julifos <email@hidden>)

  • Prev by Date: Re: adding icon in Xcode AppleScript Studio
  • Next by Date: Re: How do you get two scripts to communicate?
  • Previous by thread: Re: adding icon in Xcode AppleScript Studio
  • Next by thread: Re: How do you get two scripts to communicate?
  • Index(es):
    • Date
    • Thread