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: Programmer's Guide to MacApp / Part 1 - MacApp Theory and Architecture


Chapter 6 -
Scripting

This chapter describes MacApp's support for scripting. It also discusses some of the scripting issues you should consider when designing your application.

For 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

Previous Book Contents Book Index Next

© Apple Computer, Inc.
25 JUL 1996