OSARemoveStorageType
You can use the OSARemoveStorageType routine to remove a trailer from the script data in a generic storage descriptor record.
FUNCTION OSARemoveStorageType (scriptData: Handle): OSErr;
scriptData
- A handle to the script data.
DESCRIPTION
The OSARemoveStorageType routine removes an existing trailer (reducing the handle's size). If no trailer can be found, then the handle is not modified, and noErr is returned.
RESULT CODES
| noErr | 0 | No error |
| errOSASystemError | -1750 | General scripting system error |
| errOSABadStorageType | -1752 | Bad storage type |