Legacy Documentclose button

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

Apple Developer Connection
Advanced Search
Member Login Log In | Not a Member? Contact ADC

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


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

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996

Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice