Important: The information in this document is obsolete and should not be used for new development.
OSAGetStorageType
You can use theOSAGetStorageType
function 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
TheOSAGetStorageType
function retrieves the scripting component subtype from the trailer. If no trailer can be found,OSAGetStorageType
returns the errorerrOSABadStorageType
.RESULT CODES
noErr 0 No error errOSASystemError -1750 General scripting system error errOSABadStorageType -1752 Bad storage type