Jump to content

Apple script to reset serial value


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

Recommended Posts

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

Link to comment
Share on other sites

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?:?

Link to comment
Share on other sites

  • 4 weeks later...

This topic is 8007 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.