Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

You can't. There is a scheduling function in the Server Administration Tool (SAT) that indicates that you can run scripts but the scripts that it can run are operating system scripts. AKA batch files. So you could write a script that would copy a bunch of files from one folder to another for instance but you cannot run a Filemaker script.

Posted

Well, yes, you can trigger a FileMaker script with a .bat script.

Posted

An alternate method, which also requires FileMaker Pro on a client machine, is to put a file on the client machine that runs a startup script. This script calls the desired script in the hosted file, and then closes the client file. You then use an OS scheduler such as Scheduled Tasks on Windows XP or iCal on OSX or a similar tool such as CronniX. Set the schedule to open the client file at your desired info and say hello to your new robot!

Posted (edited)

This guy is a self declared beginner and if he's like me and sees a scheduler that runs scripts on the server he would be wondering how to run his Filemaker scripts from there. We all know that is not really possible.

As you guys described, there are indeed ways to schedule scripts but they are all pretty elaborate, clunky, obscure, or require unexpected resources such as a dedicated PC. When what you have in mind is something as simple as setting the schedule and script name into the server, the methods described can be very discouraging or unachieveable for a beginner.

Bottom line is, yes there are ways but unless you like elaborate duct tape solutions you will likely be disappointed.

Edited by Guest
Posted (edited)

I didn't read 'the guy' (sorry Jeff) wanted to run the script on the server side.

Indeed, doing so is not possible, unfortunately.

As for the 'obscure' side of the Moon... well, scheduling a task is not THAT difficult.

On the mac, iCal and Automator even make it a child's play. A little more tricky on Windows, but Task Scheduler and ActiveX make it quite easy.

Anyway, the question was 'how to do it', I supposed there was a need here, and as I don't know of a built-in feature in FileMaker, I just tried to help 'the guy'.

Edit :) if you have a dedicated client, you can even use a free plug-in such as DoScript 2.0, which allows to schedule scripts from FileMaker. The only thing is that you must be sure that the client machine is on the correct context, that's why a dedicated client is needed.

Edited by Guest
Posted

F... Matthew Broderick !

I've been hearing this for years, LOL !

Posted

Ok this is what I am trying to do...

I run some fm reports every morning that takes me about an hour because it involves importing a huge file that comes in sometime during the night.

If i could run my import script before i get here it would saver a lot of time.

I leave fmserver running 24/7, I can leave my client fmpro8.5 running all night if i have to.

I actually have the same situation for multiple reports so the time adds up.

Is a plugin the way to go?

Posted

Using the method I described above, you can do it without a plugin. You can call it duct tape if you want: I like duct tape.

Posted (edited)

I couldn't use cronnix because i have windows, but i did find that doscript2.0 works fine for me.

Edited by Guest
  • 3 weeks later...
  • Newbies
Posted

On a Windows system you have a 2-step solution:

1. Create an "opener file" - that is, a new, blank Filemaker file and create a new script that opens the import script in question in the other file. You will need to add a file reference to do this. Choose File...File Options and under When Opening this File check Perform Script. Select the 'Opener Script' you just made.

When this file is opened, it triggers the script in the other file to import. That leads us to Step 2 - Scheduling

2. In Windows, Click Start..Control Panel...Scheduled Tasks...Add a New Task

When it asks you for the Program you want to run, click Browse and Select the Filemaker file you just created. Set your schedule and it should work.

This topic is 6375 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.