Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Timed script fails to run

Featured Replies

Hi All,

I have a backup script that I have set to run if the elapsed time since the last backup is equal to greater than 24 hours but it will not run:

If[user_Data::Time_Elapsed_since_Backup ≥ "23:59:59"]

  Perform Script ["Backup"]

End If

 

Elapsed_Time_Since_Backup is a calculation field set to Time

 

What can I not see?

There are several critical things missing from your description - most importantly, what is the actual content of the Time_Elapsed_since_Backup field when the script checks it? Does the script check it at all? Is it a field that the script can see from the current context? Lots of potential failure points.

 

However, one thing jumps out immediately: "23:59:59" is text, not time. To compare a Time field to a time constant, you should use:

Timefield ≥ Time ( 23 ; 59 ; 59 )
  • Author

Hi Comment,

Sorry about the missing parts, this script is part of a larger one that performs two functions based on an On Timer script and as it was only this part that is failing I only included the failure. Yes the script does check but I think your comparator is my problem, I was checking on text not time. I have changed and will know in the next five minutes if it now works correctly.

Thank You

That did indeed resolve it

Edited by Oyseka

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.