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.

FileMaker Server Schedules

Featured Replies

I have a solution that needs regular maintenance scripts to run. I have one that prints records to a calendar and others that update records in other ways. I need these scripts to run over night because some take several minutes or even hours to run.

I have FMS8 and have put an applescript (one that just opens a webpage for this test) in the scripts folder to test the Schedules function. When I right click and say run now nothing happens. After leaving it over night it said Disabled and I cant even test it.

I am sure I am missing something here can someone clue me into what I am doing wrong?

Thanks

Edited by Guest

FMS8 schedules do not run AppleScripts, they run Shell Scripts. This is a common misconception.

It's trivial to have a shell script which performs Applescript command. e.g.


#!/bin/sh

cd xyz ; open 'MyAppleScript'   # this will work if the applescript is saved as an app





# a different way, execute Applescript command directly

osascript -e 'Tell application "Safari" to quit'



(those are from memory, i may have messed up the syntax slightly)

  • Author

Great thanks I knew there was something I was missing

However I have now made a script that i can run from the terminal but the scheduler wont run them. do i need to make it executable from the finder?

thanks

May be a file permissions issue? Make sure the file is in the 'fmsadmin' group. Not sure if it needs to be owned by 'fmserver' too?

  • Author

group is fmsadmin

my file is called test.sh a plain text file made with pico

#!/bin/sh

open /Library/FileMaker Server/Data/Scripts/AutomationScripts/test.app

that is my script

i want it to run an applescript app called test.app in a folder i put in the scripts folder.

works from the terminal but the schedule says it runs but nothing happens

Edited by Guest

1. Check permissions on the enclosing folder?

2. Do you get any output in Console.log or System.log (Mac OS X) or filemaker's Event.log that indicates what the error might be?

  • Author

did it no dice }:(

  • 2 weeks later...

See this thread which addresses similar issues: http://fmforums.com/forum/showtopic.php?tid/175368/post/200237

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.