Legacy Documentclose button

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

Previous Book Contents Book Index Next

Inside Macintosh: Interapplication Communication /
Chapter 10 - Scripting Components / Scripting Components Reference
Required Scripting Component Routines


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 the OSALoad function described in the preceding section or the optional OSACompile function described on page 10-47 to obtain a script ID.

The OSAExecute function takes a script ID for a compiled script or script context and returns a script ID for a script value. The OSADisplay function converts a script value to text that your application can later display to the user. If the OSAExecute function returns errOSAScriptError, you can use the OSAScriptError function 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 OSADispose function to release the memory the script data occupies.


Subtopics
OSAExecute
OSADisplay
OSAScriptError
OSADispose

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996