Opens items specified as an array of values of type
FSRef with a specified role.
- macOS 10.4–10.10Deprecated
- Core Services
An array of values of type
The number of items specified in
A value of type
LSRolesspecifying one or more roles. If the role doesn’t matter, use
k. For possible values, see
LSRoles. If the
inparameter is not
NULL, this parameter is ignored.
AEKeythat is to be attached to the Apple Event(s) generated by Launch Services with the specified
AEKeyword. This parameter can be
LSApplicationstructure specifying the application to launch and its launch parameters, in which case the
inparameter is ignored. This parameter can be
NULL, in which case an application is selected that can handle each input item in at least one of the roles specified by the
On input, a pointer to a caller-allocated buffer or
NULLif you don’t want to receive process serial number (PSN) information. If not
NULLon input, on return, the buffer contains at each index the PSN that was used to open the item at the same index of the input item array (
The maximum number of PSNs that the buffer pointed to by
A result code; see Result Codes.
This function opens the specified items with the specified role. You can optionally specify the application and launch parameters in the
in parameter. If an application is specified in the
in parameter, the
in parameter is ignored and the application is launched (if necessary).
Each application (regardless of whether it is launched or already running) receives an
'odoc' Apple Event specifying the items that are to be opened.
in array contains any applications, this function launches them only if the
k bit is set in the
in parameter to indicate that the operating system should use the application itself as the execution shell of the new process.
out buffer is filled with the PSN that was used to open each item at the same index of the
in array. The PSN capacity of the output buffer is specified by
Thread-safe since OS X v10.4.