Returns the application used to open an item.
- macOS 10.10+
- Core Services
The URL of the item for which the application is requested.
Whether to return the editor or viewer for
in. If you don't care which, use
On failure, set to a
CFErrordescribing the problem. If you are not interested in this information, pass
NULL. The caller is responsible for releasing this object.
If an acceptable application is found, its URL is returned. If the URL is a
file:// URL, the application bound to the specified file or directory's type is returned. If the URL's scheme is something else, its default scheme handler is returned. If no application could be found,
NULL is returned and outError (if not
NULL) is populated with
The caller is responsible for releasing this URL.
Consults the binding tables to return the application that would be used to open inURL if it were double-clicked in the Finder. This application will be the user-specified override if appropriate or the default otherwise.