Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Interapplication Communication /
Chapter 10 - Scripting Components / Scripting Components Reference
Application-Defined Routines /


MyAESendProc

Your application can provide an alternative send function that performs almost any action instead of or in addition to sending Apple events. For example, before sending an Apple event, an alternative send function can modify the event or save a copy of the event. An alternative send function takes the same parameters as the AESend function plus a reference constant.

FUNCTION MyAESendProc (theAppleEvent: AppleEvent; 
                       VAR reply: AppleEvent; 
                       sendMode: AESendMode; 
                       sendPriority: AESendPriority; 
                       timeOutInTicks: LongInt; 
                       idleProc: IdleProcPtr; 
                       filterProc: EventFilterProcPtr;
                       refCon: LongInt): OSErr;
DESCRIPTION
Every scripting component calls a send function whenever it sends an Apple event during script execution and provides routines that allow you to set or get the pointer to the send function.

If you don't set an alternative send function for a scripting component, it uses the standard Apple Event Manager function AESend, which it calls with its own default parameters.

SEE ALSO
For descriptions of the scripting component routines you can use to set or get the pointer to a scripting component's send function, see "Manipulating the Create and Send Functions," which begins on page 10-55.

For more information about send functions, see "Alternative Send Functions" on page 10-25.

For a description of the parameters for the AESend function, see "Sending Apple Events," which begins on page 5-37.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996