---
title: "urlsForApplications(toOpen:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsworkspace/urlsforapplications(toopen:)-ualk"
---

# urlsForApplications(toOpen:)

Returns an array of URLs to all available applications that can open the URL.

## Declaration

```swift
func urlsForApplications(toOpen url: URL) -> [URL]
```

## Parameters

- `url`: The URL of the file to open.

## Return Value

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

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:)](appkit/nsworkspace/urlforapplication(toopen:)-7qkzf.md)
- [urlForApplication(toOpen:)](appkit/nsworkspace/urlforapplication(toopen:)-95cvp.md)
- [urlForApplication(withBundleIdentifier:)](appkit/nsworkspace/urlforapplication(withbundleidentifier:).md)
- [urlsForApplications(toOpen:)](appkit/nsworkspace/urlsforapplications(toopen:)-60rkm.md)
- [urlsForApplications(withBundleIdentifier:)](appkit/nsworkspace/urlsforapplications(withbundleidentifier:).md)
- [getFileSystemInfo(forPath:isRemovable:isWritable:isUnmountable:description:type:)](appkit/nsworkspace/getfilesysteminfo(forpath:isremovable:iswritable:isunmountable:description:type:).md)
- [isFilePackage(atPath:)](appkit/nsworkspace/isfilepackage(atpath:).md)
- [frontmostApplication](appkit/nsworkspace/frontmostapplication.md)
- [runningApplications](appkit/nsworkspace/runningapplications.md)
- [menuBarOwningApplication](appkit/nsworkspace/menubarowningapplication.md)
- [getInfoForFile(_:application:type:)](appkit/nsworkspace/getinfoforfile(_:application:type:).md)
