Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4    Statistic    FMM    Blog  

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

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


Process.IsFrontMost - Process.KeepFrontMost

Feedback: Report problem or ask question.


Start Chat