cas305 Posted May 22, 2002 Posted May 22, 2002 Hey all, I need an apple script to reset the serial value back to "1" on a field called SequenceNumber when the script is ran. I am going to use it on Filemaker server and I am going to schedule the script to run through the scheduler program in filemaker server. I would set it up as a filemaker script but I only want it to reset once a day and not everytime a user quits out of the database. Any help or suggestions would be great. The filemaker script I used for this is: Set Next Serial Value["SequenceNumber", "1"] The script works great in filemaker but had it doing it on a restart and everytime a user quit out of the filemaker database it would reset it and i only want it to reset a midnight every day. Thanks again
jfmcel Posted May 23, 2002 Posted May 23, 2002 Sounds like you could just set an Applescript... Tell application "FileMaker Pro" do script "reset serial" end tell and set the script to run at 12:00am
cas305 Posted May 23, 2002 Author Posted May 23, 2002 Man story of my life...... making everything harder than it needs to be. Thanks for showing me the error of my ways!
cas305 Posted May 23, 2002 Author Posted May 23, 2002 Ok can anyone help me out with this??? I set up my applescript as stated above and it works fine for Filemaker pro. But i am using this on filemaker server it doesn't like the word script, says Expected end of line but found script when I change it from pro to server. Any ideas?:?
Anatoli Posted May 23, 2002 Posted May 23, 2002 In server is nothing to run your request. You can do it on workstation only.
keshalyi Posted June 18, 2002 Posted June 18, 2002 Your best bet, is to include in the applescript a few steps to have it open FMPro, and then open the database. Then run your script, and close the application. Fraid you can't do it in Server. Tsk!
Recommended Posts
This topic is 8192 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