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

Re: Call a handler from applescript


  • Subject: Re: Call a handler from applescript
  • From: Walter Ian Kaye <email@hidden>
  • Date: Fri, 30 Jan 2004 05:27:07 -0800

At 01:05p +0000 01/30/2004, Yan Wong didst inscribe upon an electronic papyrus:

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.

Hmm. It works for "regular" applets made by Script Editor.
Maybe AS Studio apps require a different technique?


-boo
who finds PB about 3 orders of magnitude too unfriendly to bother with.
_______________________________________________
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: Paul Berkowitz <email@hidden>
References: 
 >Call a handler from applescript (From: Yan Wong <email@hidden>)

  • Prev by Date: Call a handler from applescript
  • Next by Date: A small but an indistinguishably significantly gripe or 2 !
  • Previous by thread: Call a handler from applescript
  • Next by thread: Re: Call a handler from applescript
  • Index(es):
    • Date
    • Thread