September 7, 200520 yr I need to execute a timed script so I'm doing the method that was recommended in this forum. Here goes. I'm trying to have FMS Advanced schedule a task that runs an applescript that opens a database in the client that runs a startup script. That startup script performs a script in the client. The problem is the applescript never gets executed. I run the applescript manually and it works, but it won't run through the Task Scheduler in FMS. The log says it ran the scheduled task. Is anyone else having trouble running scripts? I've tried to save the script as an app, script.
September 7, 200520 yr Forget the task scheduler. Set up a CRON entry to execute the AppleScript. Get a download of Cronnix (free). It works (trust me) as I have exactly the same thing running.
September 7, 200520 yr I haven't tried to use it to run applescripts, but I've used it successfully to run shell scripts. What I found for that was that you need to place the "shebang" line at the top of the script like you would if you want to execute a perl script from the shell. #! /bin/bash This is what I put at the the top of my script file to get it to execute. You should also check that the execute permissions are set for the script file. You can call an applescript from a shell script using the "osascript" command
September 7, 200520 yr Author You guys have been very helpful. I got Cronnix working now. I kinda like the easy way to schedule stuff in FM Server. So the scripts that FMS executes are shell scripts? Not applescripts?
Create an account or sign in to comment