Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Did you know that FileMaker Pro or the whole computer can go to sleep while doing a longer script?

 

On macOS there is a feature called App Nap to save energy by sleeping applications. And of course on Windows and macOS the display gets to sleep after some time and sometimes even the whole PC or Mac goes to sleep.

 

With MBS FileMaker Plugin, you can add a script line on the start of your script and then a second line on the end of the script.

The start of the script calls the ProcessActivity.beginActivity function like this:

 

Set Variable [ $activity ; Value: MBS( "ProcessActivity.beginActivity"; "IdleSystemSleepDisabled UserInitiated"; "Doing Backup in FileMaker" ) ] 

 

On the end of the script, you have a line to end the activity:

 

Set Variable [ $r ; Value: MBS( "ProcessActivity.endActivity"; $activity ) ] 

 

All activities are cleared when you exit the application.

For complicated scripts with multiple "Exit Script" steps, it may be easier to have a wrapper script like this:

# DoBackup script
 
# Start activity
Set Variable [ $activity ; Value: MBS( "ProcessActivity.beginActivity"; "IdleSystemSleepDisabled UserInitiated"; "Doing Backup in FileMaker" ) ] 
# call the backup script
Perform Script [ Specified: From list ; DoBackup Internal ; Parameter: Get(ScriptParameter) ]
# Stop activity
Set Variable [ $r ; Value: MBS( "ProcessActivity.endActivity"; $activity ) ] 
# pass on the script result
Exit Script [ Text Result: Get(ScriptResult) ] 

Windows support was added in v13.0 (with fix in 13.3), so it may prevent display or system sleep there, too.

Let us know if you have questions about this.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.