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

# absolutePathForApplication(withBundleIdentifier:)

Returns the absolute file system path of an app bundle.

```
func absolutePathForApplication(withBundleIdentifier bundleIdentifier: String) -> String?
```

## Parameters

`bundleIdentifier`

The bundle identifier string. This value corresponds to the value in the `CFBundleIdentifier` key of the app’s `Info.plist` file. For example, the bundle identifier of the TextEdit app is `com.apple.TextEdit`.

## Return Value

The file system path to the app bundle identified by `bundleIdentifier`, or `nil` if the bundle cannot be found.

## Discussion

It is safe to call this method from any thread of your app.

---

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)