Mark Thiessen Posted September 7, 2005 Posted September 7, 2005 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.
IdealData Posted September 7, 2005 Posted September 7, 2005 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.
Reed Posted September 7, 2005 Posted September 7, 2005 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
Mark Thiessen Posted September 7, 2005 Author Posted September 7, 2005 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?
Recommended Posts
This topic is 7017 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 accountSign in
Already have an account? Sign in here.
Sign In Now