Important: The information in this document is obsolete and should not be used for new development.
Executing and Disposing of Scripts
To execute a script, your application must first obtain a valid script ID for a compiled script or script context. You can use either theOSALoadfunction described in the preceding section or the optionalOSACompilefunction described on page 10-47 to obtain a script ID.The
OSAExecutefunction takes a script ID for a compiled script or script context and returns a script ID for a script value. TheOSADisplayfunction converts a script value to text that your application can later display to the user. If theOSAExecutefunction returnserrOSAScriptError, you can use theOSAScriptErrorfunction to get more information about the error.When your application no longer needs the script data associated with a specific script ID, you can use the
OSADisposefunction to release the memory the script data occupies.
Subtopics
- OSAExecute
- OSADisplay
- OSAScriptError
- OSADispose