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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
ProcessActivity.beginActivity
Begins an activity.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Process | 5.2 | Yes | No | No | Yes, macOS only | Yes |
Parameters
| 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" |
Result
Returns reference number or error.
Description
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.
Examples
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.
Links
MBS Xojo Chart Plugins