---
title: "runningApplications(withBundleIdentifier:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsrunningapplication/runningapplications(withbundleidentifier:)"
---

# runningApplications(withBundleIdentifier:)

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

## Declaration

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

## Parameters

- `bundleIdentifier`: The bundle identifier.

## Mentioned in

Passing control from one app to another with cooperative activation

## Return Value

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

## See Also

### Getting running application instances

- [init(processIdentifier:)](appkit/nsrunningapplication/init(processidentifier:).md)
- [current](appkit/nsrunningapplication/current.md)
