Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Interapplication Communication /
Chapter 10 - Scripting Components / Scripting Components Reference
Routines Used by Scripting Components / Manipulating Trailers for Generic Storage Descriptor Records


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
noErr0No error
errOSASystemError-1750General scripting system error
errOSABadStorageType-1752Bad storage type

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996