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.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3    Statistic    FMM    Blog  


Begins an activity.

Component Version macOS Windows Linux Server iOS SDK License
Process 5.2 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes Free
MBS( "ProcessActivity.beginActivity"; activity; Reason )   More


Parameter Description Example
activity The activity as a number or a text. The plugin allows you to pass texts like IdleDisplaySleepDisabled, IdleSystemSleepDisabled, UserInitiated, UserInitiatedAllowingIdleSystemSleep, Background and LatencyCritical. Those texts can be combined. "IdleDisplaySleepDisabled"
Reason The reason text. "Doing backup"


Returns reference number or error.


Begins an activity.
Pass in an activity to this function, and a non-empty reason string. Indicate completion of the activity by calling the corresponding ProcessActivity.endActivity function with the result of this function. The reason string is used for debugging.
Requires macOS 10.9 and newer.
This function allows to deactivate App Nap for FileMaker. So when a script has to do some work, you can disable system/display sleep here which also disables app nap.


Start an activity:

MBS( "ProcessActivity.beginActivity"; "IdleSystemSleepDisabled UserInitiated"; "Doing Backup in FileMaker" )

Avoid display sleep:

MBS( "ProcessActivity.beginActivity"; "IdleDisplaySleepDisabled UserInitiated"; "Showing animation" )

See also

Example Databases

Blog Entries

Created 2nd June 2015, last changed 10th August 2020

ProcessActivity.Reason - ProcessActivity.endActivity

Feedback: Report problem or ask question.

Start Chat