Important: The information in this document is obsolete and should not be used for new development.
|
|
Log In | Not a Member? |
Contact ADC |
OSAScriptingComponentName
You can use theOSAScriptingComponentNamefunction to get the name of a scripting component.
FUNCTION OSAScriptingComponentName (scriptingComponent: ComponentInstance; VAR resultingScriptingComponentName: AEDesc): OSAError;
scriptingComponent- A component instance created by a prior call to the Component Manager function
OpenDefaultComponentorOpenComponent(see page 10-4).resultingScriptingComponentName- The name of the scripting component; or, if the component is the generic scripting component, the name of the default scripting component.
DESCRIPTION
TheOSAScriptingComponentNamefunction returns a descriptor record that you can coerce to a text descriptor type such astypeChar. This can be useful if you want to display the name of the scripting language in which the user should write a new script.RESULT CODES
noErr 0 No error errOSASystemError -1750 General scripting system error badComponentInstance $80008001 Invalid component instance SEE ALSO
For an example of the use ofOSAScriptingComponentName, see Listing 10-2 on page 10-9.
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 |