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
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help