urlsForApplications(toOpen:)
Returns an array of URLs to all available applications that can open the URL.
Declaration
func urlsForApplications(toOpen url: URL) -> [URL]Parameters
- url:
The URL of the file to open.
Return Value
An array of URLs to available apps that can open the specified url. Returns an empty array if no app can open the URL, or if the file URL doesn’t exist.
Discussion
The system sorts the resulting array according to each app’s suitability to open the URL. The returned array lists the best match first.
See Also
Requesting Information
urlForApplication(toOpen:)urlForApplication(toOpen:)urlForApplication(withBundleIdentifier:)urlsForApplications(toOpen:)urlsForApplications(withBundleIdentifier:)getFileSystemInfo(forPath:isRemovable:isWritable:isUnmountable:description:type:)isFilePackage(atPath:)frontmostApplicationrunningApplicationsmenuBarOwningApplicationgetInfoForFile(_:application:type:)