dkemme Posted February 16, 2005 Posted February 16, 2005 I have a simple AppleScript I would like to run 30 minutes after my backups to copy them to a removeable drive if the drive is mounted. Simple enough in FMS 5.5 but when I create a script in FMS7 that is to run script file, choose my AppleScript that is saved as an application, nothing happens. The AppleScript copies the files fine if I double click on it in Finder and I have checked to make sure fmserver has permissions to read and write. Any clues???
dkemme Posted March 7, 2005 Author Posted March 7, 2005 I called Filemaker on this one, stumped the first helper who forwarded my script to upper level support, still without answer. Seems to be that FMS cannot run some types of AppleScript. I have attached a solution till they figure it out though. Thanks to Fenton's help able to have the AppleScript run at specified times. 3/9/05 Fixed the bug where time differential was missed at end of day
dkemme Posted March 7, 2005 Author Posted March 7, 2005 I called Filemaker on this one, stumped the first helper who forwarded my script to upper level support, still without answer. Seems to be that FMS cannot run some types of AppleScript. I have attached a solution till they figure it out though. Thanks to Fenton's help able to have the AppleScript run at specified times. 3/9/05 Fixed the bug where time differential was missed at end of day
dkemme Posted March 7, 2005 Author Posted March 7, 2005 I called Filemaker on this one, stumped the first helper who forwarded my script to upper level support, still without answer. Seems to be that FMS cannot run some types of AppleScript. I have attached a solution till they figure it out though. Thanks to Fenton's help able to have the AppleScript run at specified times. 3/9/05 Fixed the bug where time differential was missed at end of day
dayhox Posted March 21, 2005 Posted March 21, 2005 Set your AppleScript to run as a cron job, or even as an iCal event. d
dayhox Posted March 21, 2005 Posted March 21, 2005 Set your AppleScript to run as a cron job, or even as an iCal event. d
garbanzito Posted July 7, 2005 Posted July 7, 2005 came across this looking for related info; just wanted to mention that the attached script will spend most of its time in the "delay" function, which is unfortunately, due to its Carbon roots, CPU intensive; a simple alternative is to use the shell "sleep" command; to see what i mean, use a CPU graphing tool like XRG, and watch while you run the following two lines of AppleScript and compare the impacts: do shell script "sleep 15" -- low impact delay 15 -- high impact also, what i think FM support was stumped on was the fact that a compiled script application (.app) can't be run from the FMS Schedule function, since it is treated as an application and must be connected to a WindowServer session (even if it doesn't do anything in the GUI); FMS doesn't run in a regular user session, so it has no WindowServer; if you try to schedule a script application, you will see messages in the console log about this
dkemme Posted July 8, 2005 Author Posted July 8, 2005 Thanks, I've also learned others have had success making the script run with the on run subroutine, I've not bothered trying since my kludge works so well. DJK
Recommended Posts
This topic is 7077 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