Jump to content

FileMaker Server Schedules


This topic is 6589 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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
Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 2 weeks later...

This topic is 6589 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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