Important: The information in this document is obsolete and should not be used for new development.
Optional Scripting Component Routines
This section describes eight groups of optional routines that scripting components can support. Your application can use the Component Manager to find a scripting component that supports a specific group of routines or to determine whether a particular scripting component supports a specific group of routines.To specify one or more groups of routines for the Component Manager, use the following constants to set the equivalent bits in the
componentFlags
field of a component description record:
CONST kOSASupportsCompiling = $0002; kOSASupportsGetSource = $0004; kOSASupportsAECoercion = $0008; kOSASupportsAESending = $0010; kOSASupportsRecording = $0020; kOSASupportsConvenience = $0040; kOSASupportsDialects = $0080; kOSASupportsEventHandling = $0100;Each of these flags identifies one of the groups of routines that are described in the sections that follow. For information about using these constants to locate scripting components that support specific groups of optional routines, see "Connecting to a Scripting Component," which begins on page 10-3.
Subtopics
- Compiling Scripts
- Getting Source Data
- Coercing Script Values
- Manipulating the Create and Send Functions
- Recording Scripts
- Executing Scripts in One Step
- Manipulating Dialects
- Using Script Contexts to Handle Apple Events