AEManagerInfo(_:_:)
Provides information about the version of the Apple Event Manager currently available or the number of processes that are currently recording Apple events.
Declaration
func AEManagerInfo(_ keyWord: AEKeyword, _ result: UnsafeMutablePointer<Int>!) -> OSErrParameters
- keyWord:
A value that determines the kind of information the function supplies in the
resultparameter.Pass the value
keyAERecorderCountto obtain the number of processes that are currently recording Apple events.Pass the value
keyAEVersionto obtain version information for the Apple Event Manager, inNumVersionformat.Some keyword constants are defined in 1527206 Keyword_parameter_constants.
See Aekeyword.
- result:
A pointer to a long value. On return, provides information that depends on what you pass in the
keywordparameter.If you pass
keyAERecorderCount,resultspecifies the number of processes that are currently recording Apple events.If you pass
keyAEVersion,resultsupplies version information for the Apple Event Manager, in a format that matches the'vers'resource.
Return Value
A result code. See Result Codes.
Discussion
For recordable applications, the information provided by AEManagerInfo may be useful when the application is responding to Apple events that it sends to itself.
For information on determining whether the Apple Event Manager is available, see the Apple Event Manager Gestalt Selector, described in Inside macOS: Gestalt Manager Reference.
Version-Notes
Thread safe starting in OS X v10.2.
The AEManagerInfo function is available only in version 1.01 and later of the Apple Event Manager.