Important: The information in this document is obsolete and should not be used for new development.
OSAGetStorageType
You can use theOSAGetStorageTypefunction to retrieve the scripting component subtype from the script trailer appended to the script data in a generic storage descriptor record.
FUNCTION OSAGetStorageType(scriptData: Handle; VAR type: DescType): OSErr;
scriptData
A handle to the script data.type- The descriptor type specified in the script data trailer.
DESCRIPTION
TheOSAGetStorageTypefunction retrieves the scripting component subtype from the trailer. If no trailer can be found,OSAGetStorageTypereturns the errorerrOSABadStorageType.RESULT CODES
noErr 0 No error errOSASystemError -1750 General scripting system error errOSABadStorageType -1752 Bad storage type