Important: The information in this document is obsolete and should not be used for new development.
Recording Scripts
TheOSAStartRecording
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 toOSAStopRecording
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 thecomponentFlags
field of its component description record.
Subtopics
- OSAStartRecording
- OSAStopRecording