Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Scheduled Task Scripts won't execute

Featured Replies

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.

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.

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

  • 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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.