Important: The information in this document is obsolete and should not be used for new development.
Chapter 6 -
This chapter describes MacApp's support for scripting. It also discusses some of the scripting issues you should consider when designing your application.
ScriptingFor detailed information on adding scripting support to your application, see Chapter 14, "Working With Scripting."
Chapter Contents
- Overview
- Scripting Terminology
- Deciding What Level of Scripting to Support
- Required and Core Event Suites
- Area Suites
- Factoring
- Advantages and Disadvantages of Adding Scripting Support
- MacApp's Scripting Model
- Apple Event Targets
- An Example of the Object Model in Action
- Components of MacApp's Scripting Support
- Dispatching Apple Events
- Initializing Scripting
- InstallDispatchHandlers
- InstallObjectCallbacks
- InstallPreDispatchHandler
- Apple Event Dispatching
- Predispatching Apple Events to Attached Scripts
- Dispatching Apple Events Directly to an Apple Event Object
- The TSetPropertyCommand Class
- The TPropertyAccessor Class
- The TClientCommand Class
- Attaching Scripts
- Attaching a Script to an Object
- Saving an Attached Script With a Document
- Executing Scripts
- User Interaction
- Error Handling