RunTask.IsRunning
-----------------

Returns whether the receiver is still running.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RunTask](component_RunTask.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md). Use [Shell](component_Shell.md) functions instead.

MBS( "RunTask.IsRunning" ) ### Parameters

none

### Result

Returns whether the receiver is still running.

### Description

Returns whether the receiver is still running.  
1 if the receiver is still running, otherwise 0. 0 means either the receiver could not run or it has terminated.  
### Examples

Wait for app ending:

 Loop  
 Pause/Resume Script \[Duration (seconds): ,1\]  
 Exit Loop If \[MBS ( "RunTask.IsRunning" ) ≠ 1\]  
End Loop  
### See also

- [RunTask.Launch](RunTaskLaunch.md)
- [RunTask.NewTask](RunTaskNewTask.md)
- [RunTask.SetArguments](RunTaskSetArguments.md)
- [URLScheme.SetDefaultHandler](URLSchemeSetDefaultHandler.md)

### Example Databases

- [Shell/RunTask/RunTask Windows](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Shell/RunTask/RunTask%20Windows.shtml#2ScriptAnchor_)
- [Shell/RunTask/RunTask with read and write on Mac](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Shell/RunTask/RunTask%20with%20read%20and%20write%20on%20Mac.shtml#1ScriptAnchor_)
- [Shell/RunTask/RunTask](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Shell/RunTask/RunTask.shtml#1ScriptAnchor_)

### Blog Entries

- [Tip of the day: Query connected clients on FileMaker Server by script](https://www.mbsplugins.de/archive/2016-08-17/Tip_of_the_day_Query_connected/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 13th June 2020

  
[RunTask.GetVerb](RunTaskGetVerb.md) - [RunTask.Launch](RunTaskLaunch.md)

[HTML Version](RunTaskIsRunning.shtml)