Important: The information in this document is obsolete and should not be used for new development.
Using Scripting Component Routines
The following sections describe how to use some of the standard scripting component routines to manipulate and execute scripts from within your application. For an overview of these routines, see "Manipulating and Executing Scripts," which begins on page 7-18.The first section describes how to compile and execute source data for a script. The remaining sections describe how you can use scripting component routines to
- get a handle to a compiled script and save the data as a resource
- load and execute a previously saved and compiled script
- load, modify, recompile, and save a compiled script
- redirect Apple events to handlers in script contexts
- supply a resume dispatch function
- supply an alternative active function
- supply alternative send and create functions
- record Apple events in compiled scripts and display equivalent source data to the user
Subtopics
- Compiling and Executing Source Data
- Saving Script Data
- Loading and Executing Script Data
- Modifying and Recompiling a Compiled Script
- Using a Script Context to Handle an Apple Event
- Supplying a Resume Dispatch Function
- Supplying an Alternative Active Function
- Supplying Alternative Create and Send Functions
- Recording Scripts