OSAGetCreateProc
You can use the OSAGetCreateProc function to get a pointer to the create function that a scripting component is currently using to create Apple events.
FUNCTION OSAGetCreateProc(scriptingComponent: ComponentInstance;
VAR createProc: AECreateAppleEventProcPtr;
VAR refCon: LongInt): OSAError;
scriptingComponent
-
A component instance created by a prior call to the Component Manager function OpenDefaultComponent or OpenComponent (see page 10-4).
createProc
- The
OSAGetCreateProc function returns, in this parameter, a pointer to the create function currently set for the specified scripting component.
refCon
- The
OSAGetCreateProc function returns, in this parameter, the reference constant associated with the create function for the specified scripting component.
RESULT CODES
| noErr | 0 | No error |
| errOSASystemError | -1750 | General scripting system error |
| badComponentInstance | $80008001 | Invalid component instance |