OSAAddStorageType
You can use the OSAAddStorageType routine to add a trailer to the script data in a generic storage descriptor record.
FUNCTION OSAAddStorageType(scriptData: Handle;
type: DescType): OSErr;
scriptData
- A handle to the script data.
type
- The descriptor type to be specified in the trailer added to the script data.
DESCRIPTION
The OSAAddStorageType routine attaches a trailer to a handle (consequently expanding the data to which the handle refers) or updates an existing trailer.
RESULT CODES
| noErr | 0 | No error |
| errOSASystemError | -1750 | General scripting system error |
| errOSABadStorageType | -1752 | Bad storage type |