Important: The information in this document is obsolete and should not be used for new development.
|
|
Log In | Not a Member? |
Contact ADC |
OSACopyID
You can use theOSACopyIDfunction to update script data after editing or recording and to perform undo or revert operations on script data.
FUNCTION OSACopyID(scriptingComponent: ComponentInstance; fromID: OSAID; VAR toID: OSAID): OSAError;
scriptingComponent- A component instance created by a prior call to the Component Manager function
OpenDefaultComponentorOpenComponent(see page 10-4).fromID- The script ID for script data that you want to be associated with the script ID in the
toIDparameter.toID- The script ID for the script data to be replaced. If the value of this parameter is
kOSANullScript, theOSACopyIDfunction returns a new script ID.DESCRIPTION
TheOSACopyIDfunction replaces the script data identified by the script ID in thetoIDparameter with the script data identified by the script ID in thefromIDparameter.RESULT CODES
noErr 0 No error errOSASystemError -1750 General scripting system error errOSAInvalidID -1751 Invalid script ID badComponentInstance $80008001 Invalid component instance
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 |