Important: The information in this document is obsolete and should not be used for new development.
OSASetCreateProc
You can use theOSASetCreateProcfunction to specify a create function that a scripting component should use instead of the Apple Event Manager'sAECreateAppleEventfunction when creating Apple events.
FUNCTION OSASetCreateProc(scriptingComponent: ComponentInstance; createProc: AECreateAppleEventProcPtr; refCon: LongInt): OSAError;
scriptingComponent
A component instance created by a prior call to the Component Manager functionOpenDefaultComponentorOpenComponent(see page 10-4).createProc- A pointer to the create function to set.
refCon- A reference constant.
RESULT CODES
noErr 0 No error errOSASystemError -1750 General scripting system error badComponentInstance $80008001 Invalid component instance