Jump to content
Sign in to follow this  
chevell

If/then based on CurrentTime

Recommended Posts

I have a script that runs every three minutes to check for changes in the data. I want to be able to run a specific script at 7 am everyday triggered by this script. I was using If Status(currenttime) >= "7:00:00 AM" perform script "a". Unfortunately, it does absolutely nothing. I had it checking to see if it was past 7:03 so it didn't run all day and I took that out for troubleshooting. It had no effect. Still nothing. I'm using the status(currendate) to run a script on the first of every month and on mondays. For some reason I can't do a certain time. Any help would be greatly appreciated. Thanks!

Share this post


Link to post
Share on other sites

In filemaker 6, use the TextToTime("7:00:00 AM") function. In version 7 it's been renamed GetAtTime()

Share this post


Link to post
Share on other sites

Or even better, Status(CurrentTime) >= Time( 7, 0, 0 ).

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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