• 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: What is this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is this?


  • Subject: Re: What is this?
  • From: Jon Pugh <email@hidden>
  • Date: Wed, 17 Oct 2001 15:16:52 -0700

At 8:09 PM +0200 10/17/2001, JJ wrote:
>What the heck is "Call.subroutine" (<<event ascrpsbr>>) and how it works?

on foo(bar)

translates into a handler for the subroutine event. Thus, calling

foo(bar)

generates a subroutine event in AppleEvents. This is basically how AppleScript calls subroutines in scripts, by sending them this event. It's very useful when attempting to call handlers within scripts from C code.

For an example of its use, check out my MoreOSA sample code:

http://www.seanet.com/~jonpugh/MoreOSA.html

Jon


References: 
 >What is this? (From: JJ <email@hidden>)

  • Prev by Date: Re: Dissatisfied with Display Dialog command
  • Next by Date: Re: AppleScript Suite
  • Previous by thread: What is this?
  • Next by thread: Re: To Script, or not to Script?
  • Index(es):
    • Date
    • Thread