Skip 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.

Scheduled Scripts

Featured Replies

Is it possible to use FM Server to schedule scripts to be run, INDEPENDANT of any users being on the system?

I would like my system to perfom some housekeeping functions, and send some automatic emails at night.

Presently, I have the last person out the door at night engage a script. But they often forget to do this.

I know about the plug ins, but I don't want to be dependant on a user to leave the solution open, or clicking buttons etc. What is the best way to implement this?

TIA

Jerry

Here's a way that might work for your situation:

I'm currently developing a server application that will send email based on the status of new or changed records in the files. I set up a dedicated workstation with regular FileMaker and a special email address that makes it look like it is coming from the server. I created a series of FMP files on the workstation controlled by a main file that basically has a script that runs constantly with some pauses set to certain times. At certain points in the script, it opens the other files that open the server files, runs some scripted finds for the targeted records and then creates and sends out email messages to users who need to take some action on those records. The main script then re-calls itself and starts all over.

I haven't used this in productions yet, but the testing we did shows that the concept works. The scheduled backups on the server don't seem to affect this permanently connected 'guest' - I just make sure the scripts aren't activated during the backup processes. I guess you could consider this workstation as an extension of the server.

I got this idea from a part of my backup routine that closes 2 product list files on the server, opens them in FMP via a separate file that exports, sorts, then re-imports the records. This helps to reduce opening times of the files for users with an initial sort of the records - It has worked like a dream for 3 years.

Both the server and workstation are NT4. The email workstation is set so a reboot automatically starts the main script file and it all runs unattended while the workstation is 'locked'.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.