Important: The information in this document is obsolete and should not be used for new development.
MyActiveProc
Your application can provide an alternative active function that performs periodic tasks during script compilation such as checking for Command-period, spinning the cursor, and checking for system-level errors.
FUNCTION MyActiveProc (refCon: LongInt): OSErr;
refCon
- A reference constant.
DESCRIPTION
Every scripting component calls an active function periodically during script compilation and execution and provides routines that allow your application to set or get the pointer to the active function.If you don't set an alternative active function for a scripting component, it uses its own default active function. A scripting component's default active function allows a user to cancel script execution by pressing Command-period and calls
WaitNextEvent
to give other processes time.SEE ALSO
For descriptions of the scripting component routines you can use to set or get the pointer to a scripting component's active function, see "Manipulating the Active Function" on page 10-44.For a discussion of the role of an active function, see "Supplying an Alternative Active Function" on page 10-23.