---
title: processIdentifier
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsrunningapplication/processidentifier
---

# processIdentifier

Indicates the process identifier (pid) of the application.

## Declaration

```swift
var processIdentifier: pid_t { get }
```

## Discussion

Discussion Not all applications have a pid.  Applications without a pid return a value of -1. Do not rely on this for comparing processes, instead compare NSRunningApplication instances using isEqual(_:).

## See Also

### Application information

- [localizedName](appkit/nsrunningapplication/localizedname.md)
- [icon](appkit/nsrunningapplication/icon.md)
- [bundleIdentifier](appkit/nsrunningapplication/bundleidentifier.md)
- [bundleURL](appkit/nsrunningapplication/bundleurl.md)
- [executableArchitecture](appkit/nsrunningapplication/executablearchitecture.md)
- [executableURL](appkit/nsrunningapplication/executableurl.md)
- [launchDate](appkit/nsrunningapplication/launchdate.md)
- [isFinishedLaunching](appkit/nsrunningapplication/isfinishedlaunching.md)
- [ownsMenuBar](appkit/nsrunningapplication/ownsmenubar.md)
