OSAGetStorageType
You can use the OSAGetStorageType 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
The OSAGetStorageType function retrieves the scripting component subtype from the trailer. If no trailer can be found, OSAGetStorageType returns the error errOSABadStorageType.
RESULT CODES
| noErr | 0 | No error |
| errOSASystemError | -1750 | General scripting system error |
| errOSABadStorageType | -1752 | Bad storage type |