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.

running script at a certain time

Featured Replies

Im trying to make it so that my database runs a script at a certain time by itself. Is there a way to do that.

I want to update my records, and i have a script that will do that, but i need to make it so that it does it automatically every night at a certain time.

Thanks in advance.

This could be done using the windows task Scheduler to run a VBS script that runs the filemaker script (Other options: starting a script with a loop in it that runs until the specified time or using a plug-in)

The Following saved as a .vbs might do it (I have not tested this)

Set objFM = WScript.CreateObject ("FMPRO.Application")

Set WshShell = WScript.CreateObject("WScript.Shell")

FMfile = "C:yourpathtoyourFMFileyourfile.fp7"

Wscript.Sleep 10

objFM.Visible = True ' show FMPro

WshShell.AppActivate ("FileMaker Pro")

Set objFMfiles = objFM.Documents.Open( FMfile,"username","password")

objFMfiles.DoFMScript ("yourscript") ' call this FM script

(Important note: make sure the FM script you are calling is placed above any script folders and is not in a script folder itself, a bug in ver 9 will cause the wrong script to be called if it is.)

a loop may be needed in the above script in order to allow the filemaker app or file to open (if it isn't already)

Hope this helps a little.

Allen

OR....

you could just point the task Scheduler to a FM file that holds a single script that is set to run when opened (that would be an easier solution)

  • Author

Thanks for the Help. I tried the last one and it worked perfectly.

thanks for the input.

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.