<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/urlsForApplications(withBundleIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWorkspace(im)URLsForApplicationsWithBundleIdentifier:"
  },
  "title" : "urlsForApplications(withBundleIdentifier:)"
}
-->

# urlsForApplications(withBundleIdentifier:)

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

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

## Parameters

`bundleIdentifier`

The bundle identifier for the apps to open.

## 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

The system sorts the resulting array accounts according to each app’s suitability to launch. The returned array lists the best match first.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)