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 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. 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. Inc. All rights reserved.