Carbon


Apple Event Manager Gestalt Selector and Attributes

Header: Gestalt.h

Used with the Gestalt function to determine whether the Apple Event Manager is available and to check for specific features.

enum {
    gestaltAppleEventsAttr = 'evnt',
    gestaltAppleEventsPresent = 0,
    gestaltScriptingSupport = 1,
    gestaltOSLInSystem = 2
};

Constant descriptions

gestaltAppleEventsAttr

A selector you pass to the Gestalt function. If the Apple Event Manager is not present, the Gestalt function returns an error value; otherwise, it returns noErr and supplies, in the response parameter, a 32-bit value whose bits specify which features of the Apple Event Manager are available.

The Discussion section for “AppleScript Gestalt Selector and Attributes” describes AppleScript and Apple Event Manager versions and features.

gestaltAppleEventsPresent

A Gestalt attribute constant. If the bit specified by this constant is set in the response parameter value supplied by Gestalt for the gestaltAppleEventsAttr selector, the Apple Event Manager is present and installed in the system.

gestaltScriptingSupport

A Gestalt attribute constant. If the bit specified by this constant is set in the response parameter value supplied by Gestalt for the gestaltAppleEventsAttr selector, the Open Scripting Architecture (OSA) is available to provide scripting support. The OSA is described in “Scripting Components”.

gestaltOSLInSystem

A Gestalt attribute constant. If the bit specified by this constant is set in the response parameter value supplied by Gestalt for the gestaltAppleEventsAttr selector, the Object Support Library (OSL) is part of the system. For information on which applications might use this constant, see the Version Notes section in “AppleScript Gestalt Selector and Attributes”.


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