<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSRunningApplication/runningApplications(withBundleIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSRunningApplication(cm)runningApplicationsWithBundleIdentifier:"
  },
  "title" : "runningApplications(withBundleIdentifier:)"
}
-->

# runningApplications(withBundleIdentifier:)

Returns an array of currently running applications with the specified bundle identifier.

```
class func runningApplications(withBundleIdentifier bundleIdentifier: String) -> [NSRunningApplication]
```

## Parameters

`bundleIdentifier`

The bundle identifier.

## Return Value

An array of `NSRunningApplications`, or an empty array if no applications match the bundle identifier.

---

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)