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.

Auto run script files

Featured Replies

Hi everyone,

I want to run a script on FM Server 8 automatically after hours. It is a report that is supposed to be done at the end of the day but people keep forgetting. I didn't think I could make it run when the file closed because different people run it and if someone is still inputting data I don't want it to run. Can this be done? I have looked through the help menu and it mentions script files. I don't know what they are. I did a search in here on script files and it found pretty much every post that mentions the word script or file. Can anyone help me?

Thanks in Advance

Mike

You can still call the script when the file closes, as you first thought. But at the top of the script, put in a test...

- if[get(usercount)>1]

- exit script

- end if

- //rest of your end-of-day script

This will mean it only runs when the LAST person closes the database.

:-)

  • Author

Awesome, thank you. One question though. If I have server set to disconnect someone who is idle, will that cause a problem. Meaning if one guy still has it open and leaves without closing it, when the server kicks him off will it trigger the script?

FM Server 9.0 can now run ScriptMaker script inside FM files as a scheduled process. With older versions this had to be done with a "drone" computer running FMP.

The only proviso is that the script must be IWP-compatible.

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.