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

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

Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted

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?

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 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.