Process.List
------------

Queries process list.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Process](component_Process.md) | [11.2](newinversion112.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Process.List" { ; Flags } ) 

**MBS**( **"Process.List";** /\* Queries process list. \*/  
**$Flags**) /\* Optional; Not yet used. \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Flags | Not yet used. |  | Optional |

### Result

Returns JSON or error.

### Description

Queries process list.  
macOS and Windows manage processes differently, so we have same and different fields.  
  
| Field | Description |
|---|---|
| active | Whether application is active/frontmost. |
| hidden | Whether application is hidden on macOS. |
| executableArchitecture | The architecture on macOS, e.g. X86\_64 or ARM64. |
| bundleIdentifier | The bundle identifier on macOS. |
| executablePath | The file path to the application. Not available on Windows for system processes. |
| current | Whether this is current process. |
| executableName | The name of the app. |
| localizedName | The localized name on macOS for the application. |
| processIdentifier | The process identifier number. |
| numberOfThreads | The number of threads on Windows. |
| parentProcessIdentifier | The parent process identifier on Windows. |

  
The linux implementation provides processIdentifier, parentProcessIdentifier, current, numberOfThreads, executablePath and executableName fields. In addition we add a state, currentWorkingDirectory and the cmdline fields. Not all fields are always available due to permission issues.  
### Examples

Query processes

 Set Variable \[ $json ; MBS ("Process.List") \]  
### Release notes

- **Version 14.5**
    - Implemented [Process.List](https://www.mbsplugins.eu/ProcessList.shtml) for Linux.
- **Version 11.2**
    - Added [Process.List](https://www.mbsplugins.eu/ProcessList.shtml) function for macOS and Windows.

### Blog Entries

- [Neues MBS Plugin 14.5 für Claris FileMaker](https://www.mbsplugins.de/archive/2024-11-12/Neues_MBS_Plugin_145_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 14.5 for Claris FileMaker](https://www.mbsplugins.de/archive/2024-11-12/MBS_FileMaker_Plugin_145_for_C/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.5pr3](https://www.mbsplugins.de/archive/2024-10-17/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, June 2021 News](https://www.mbsplugins.de/archive/2021-06-01/MBS_FileMaker_Plugin_June_2021/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 11.2](https://www.mbsplugins.de/archive/2021-05-26/New_in_MBS_FileMaker_Plugin_11/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 11.2](https://www.mbsplugins.de/archive/2021-05-18/Neues_MBS_FileMaker_Plugin_112/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.2 - More than 6500 Functions In One Plugin](https://www.mbsplugins.de/archive/2021-05-18/MBS_FileMaker_Plugin_112_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.2pr5](https://www.mbsplugins.de/archive/2021-05-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin Quiz](https://www.mbsplugins.de/archive/2021-04-30/MBS_Plugin_Quiz/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 23th April 2021 , last changed 12nd October 2024

  
[Process.KeepFrontMost](ProcessKeepFrontMost.md) - [Process.LoadFramework](ProcessLoadFramework.md)

[HTML Version](ProcessList.shtml)