May 16, 200718 yr 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.
May 16, 200718 yr 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!
May 17, 200718 yr 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 May 17, 200718 yr by Guest
May 17, 200718 yr 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 May 17, 200718 yr by Guest
May 17, 200718 yr Author 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?
May 17, 200718 yr 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.
May 18, 200718 yr Use cronnix which is a Mac scheduler. I have same situation as urs and I use it.Its a free software.
May 23, 200718 yr Author I couldn't use cronnix because i have windows, but i did find that doscript2.0 works fine for me. Edited May 23, 200718 yr by Guest
June 13, 200718 yr Newbies 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.
Create an account or sign in to comment