Launches the specified application.
- macOS 10.4–10.10Deprecated
- Core Services
LSApplicationstructure specifying the application to launch and its launch parameters. This parameter cannot be
On input, a pointer to a value of type
Processthat, on return, contains the process serial number (PSN) of the application specified by
NULLif you don’t want to receive the PSN.
A result code; see Result Codes.
LSOpen launches one application. This function is an updated alternative to the Process Manager's
Launch function. Launch arguments are specified in the
in argument, which must be supplied. If the application is already running in the current session, it is made the front process (unless the
k flag is used, which always causes a new process to be created).
out is not
NULL, on return, the structure it points to contains the PSN of the launched (or activated) process. Note that for asynchronous launches, the application may not have finished launching when this function returns.
Thread-safe since OS X v10.4.