Re: What is this?
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