OSAGetResumeDispatchProc
You can use the OSAGetResumeDispatchProc function to get the resume dispatch function currently being used by a scripting component instance during execution of an AppleScript continue statement or its equivalent.
FUNCTION OSAGetResumeDispatchProc
(scriptingComponent: ComponentInstance;
VAR resumeDispatchProc: AEHandlerProcPtr;
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).
resumeDispatchProc
- The
OSAGetResumeDispatchProc function returns a pointer to the resume dispatch function for the specified scripting component in this parameter. If no resume dispatch function has been registered, OSAGetResumeDispatchProc returns kOSAUseStandardDispatch (the default).
refCon
- The
OSAGetResumeDispatchProc function returns the reference constant associated with the resume dispatch function in this parameter.
RESULT CODES
| noErr | 0 | No error |
| errOSASystemError | -1750 | General scripting system error |
| badComponentInstance | $80008001 | Invalid component instance |