• 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
Call a handler from applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Call a handler from applescript


  • Subject: Call a handler from applescript
  • From: Yan Wong <email@hidden>
  • Date: Fri, 30 Jan 2004 13:05:59 +0000

A pretty basic question, but I'm new to applescript programming. How, from the outside, can I call a handler in an scriptable AS Studio application.

In other words, I have an Applescript application called "Signal" containing

on my_signal(txt)
display dialog txt
end my_signal

Which I place in /Applications. I wish to run another applescript that does something like

tell application "Signal"
my_signal("hello")
end tell

I imagined that this was what the "call method" function did, but that doesn't work either. I'm sure I'm just missing something obvious.

Thanks

Yan
_______________________________________________
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: Call a handler from applescript
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Re: saving OSAX in package contents
  • Next by Date: Re: Call a handler from applescript
  • Previous by thread: saving OSAX in package contents
  • Next by thread: Re: Call a handler from applescript
  • Index(es):
    • Date
    • Thread