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


Executing Scripts

MacApp provides the TExecuteScriptCommand class to execute a script. You initialize a command object of this type by calling the IExecuteScriptCommand method. You pass an OSAID value specifying the script to be executed, an OSAID value specifying the script context, and a ComponentInstance value specifying the scripting component, along with standard command information such as the context and command number.

The DoIt method of the TExecuteScriptCommand object executes the script that was specified in the IExecuteScriptCommand method. For sample code that demonstrates how to execute a script with TExecuteScriptCommand, see the TMenuBehavior class in the DemoText sample application distributed with MacApp.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
25 JUL 1996