Important: The information in this document is obsolete and should not be used for new development.
OSAGetScriptingComponentFromStored
You can use theOSAGetScriptingComponentFromStoredroutine to get the subtype code for a scripting component that created a storage descriptor record.
FUNCTION OSAGetScriptingComponentFromStored (genericScriptingComponent: ComponentInstance; scriptData: AEDesc; VAR scriptingSubType: ScriptingComponentSelector) : OSAError;
genericScriptingComponent- A component instance for the generic scripting component, created by a prior call to the Component Manager function
OpenDefaultComponentorOpenComponent(see page 10-4).scriptData- Either a generic storage descriptor record or a component-specific storage descriptor record.
scriptingSubType- The function returns, in this parameter, a subtype code identifying the scripting component that created the descriptor record specified by the
scriptDataparameter.DESCRIPTION
TheOSAGetScriptingComponentFromStoredfunction returns, in thescriptingSubTypeparameter, the subtype code for the scripting component that created the script data specified by thescriptDataparameter.The generic scripting component automatically identifies the appropriate scripting component for you when you use it to call
OSALoad. By callingOSAGetScriptingComponentFromStored, you can determine, without loading a script, which scripting component created the script data.RESULT CODES
noErr 0 No error errOSACantOpenComponent -1762 Can't connect to scripting component badComponentInstance $80008001 Invalid component instance