---
title: "urlsForApplications(withBundleIdentifier:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsworkspace/urlsforapplications(withbundleidentifier:)"
---

# urlsForApplications(withBundleIdentifier:)

Returns an array of URLs to all available applications that can open the specified bundle identifier.

## Declaration

```swift
func urlsForApplications(withBundleIdentifier bundleIdentifier: String) -> [URL]
```

## Parameters

- `bundleIdentifier`: The bundle identifier for the apps to open.

## Return Value

Return Value An array of URLs to available apps that can open the specified bundleIdentifier. Returns an empty array if no app associates with the bundle identifier.

## Discussion

Discussion The system sorts the resulting array accounts according to each app’s suitability to launch. 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:)-ualk.md)
- [urlsForApplications(toOpen:)](appkit/nsworkspace/urlsforapplications(toopen:)-60rkm.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)
