Carbon


Event ID Constants

Header: AppleEvents.h

Specify the event ID for an Apple event.

enum {
    kAEOpenApplication = 'oapp',
    kAEOpenDocuments = 'odoc',
    kAEPrintDocuments = 'pdoc',
    kAEQuitApplication = 'quit',
    kAEAnswer = 'ansr',
    kAEApplicationDied = 'obit',
    kAEShowPreferences = ''pref''
};

Constant descriptions

kAEOpenApplication

Event that launches an application.

kAEOpenDocuments

Event that open documents.

kAEPrintDocuments

Print documents.

kAEQuitApplication

Event that causes the application to quit.

kAEAnswer

Event that is a reply Apple event.

kAEApplicationDied

Event sent by the Process Manager to an application that launched another application when the launched application quits or terminates.

kAEShowPreferences

Apple events are identified by their event class and event ID attributes. The event ID is the attribute that identifies the particular Apple event within its event class. In conjunction with the event class, the event ID uniquely identifies the Apple event and communicates what action the Apple event should perform. The event ID appears in the where field of the event record for an Apple event. For example, an event with ID kAEOpenApplication and class kCoreEventClass is a required event from the Core suite (now included in the Standard suite) that launches an application.

Only a small number of event IDs are shown here. For a more complete listing, see the Apple Event and Scripting header files or the Mac OS Registry, a database collection of Apple Event and Scripting information distributed with AppleScript SDKs.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)