k event, specify information about how the receiving application was launched.
- macOS 10.5+
- Mac Catalyst 13.0+
- Core Services
Although these constants were not publicly defined in OS X version 10.4, corresponding information was provided in
k Apple events sent by that version of the OS. Therefore your application, running in macOS 10.4 or later, can examine the open application Apple event to determine if the application was launched as a login item or a service item. However, for version 10.4, you will have to define these constants in your own code file.
You check for a
key parameter of the
k Apple event, with a data value that matches