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: Interapplication Communication /
Chapter 10 - Scripting Components / Scripting Components Reference
Optional Scripting Component Routines


Recording Scripts

The OSAStartRecording function turns on the Apple Event Manager's recording mechanism and specifies a script in which subsequent recordable Apple events are recorded. The scripting component sends the recording process (for example, a script editor) a Recorded Text event that contains the decompiled equivalent for each recordable event it receives. The script editor can then display the decompiled script in a script editor window if a window for that script is currently open. Recording continues until a call to OSAStopRecording turns recording off.

Script editors use these routines to allow users to control recording. Any application can use these routines to provide its own script-recording interface.

For more information about the Apple event recording mechanism, see the chapter "Recording Apple Events" in this book. For more information about the Recorded Text event, see "Recording Scripts" on page 10-26.

A scripting component that supports the functions described in this section has the kOSASupportsRecording bit set in the componentFlags field of its component description record.


Subtopics
OSAStartRecording
OSAStopRecording

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996