Slobey Posted July 23, 2007 Posted July 23, 2007 Hi everyone, I want to run a script on FM Server 8 automatically after hours. It is a report that is supposed to be done at the end of the day but people keep forgetting. I didn't think I could make it run when the file closed because different people run it and if someone is still inputting data I don't want it to run. Can this be done? I have looked through the help menu and it mentions script files. I don't know what they are. I did a search in here on script files and it found pretty much every post that mentions the word script or file. Can anyone help me? Thanks in Advance Mike
jamesducker Posted July 23, 2007 Posted July 23, 2007 You can still call the script when the file closes, as you first thought. But at the top of the script, put in a test... - if[get(usercount)>1] - exit script - end if - //rest of your end-of-day script This will mean it only runs when the LAST person closes the database. :-)
Slobey Posted July 23, 2007 Author Posted July 23, 2007 Awesome, thank you. One question though. If I have server set to disconnect someone who is idle, will that cause a problem. Meaning if one guy still has it open and leaves without closing it, when the server kicks him off will it trigger the script?
Vaughan Posted July 23, 2007 Posted July 23, 2007 FM Server 9.0 can now run ScriptMaker script inside FM files as a scheduled process. With older versions this had to be done with a "drone" computer running FMP. The only proviso is that the script must be IWP-compatible.
Recommended Posts
This topic is 6332 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