Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Process.IsRunning

Checks if a process is running.

Component Version macOS Windows Linux Server iOS SDK
Process 4.0 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ❌ No
MBS( "Process.IsRunning"; Process )   More

Parameters

Parameter Description Example
Process Either a number with process ID or a process name or a bundle ID. 123

Result

Returns 0, 1 or error.

Description

Checks if a process is running.
Returns 1 if process is found in process list or 0 if not.

Examples

Check if Safari is running by name:

MBS( "Process.IsRunning"; "Safari" )

Check if Safari is running by bundle ID:

MBS( "Process.IsRunning"; "com.apple.safari" )

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014


Process.IsFrontMost - Process.KeepFrontMost