1 2 Previous Next 22 Replies Latest reply on Jul 2, 2016 7:53 PM by Stephen Huston

    FileMaker Script Step “Pause” is not Supported on the Server. Is there a workaround?

    rohrkemper

      I'm attempting to include a Pause step within a script that will run nightly on our FileMaker 11 server.

      Here's the code that I would like to execute:

      Loop 
          Pause/Resume Script [Duration (seconds): 0.01]
          <do something and exit based on some condition>
      End Loop

      The pause needs to be approximately 1/100 seconds.

      The roadblock is that the Pause/Resume Script is not supported by FileMaker Server, but rather only by the Client application.

      I've already considered using Get(CurrentHostTimestamp), and continuing with the loop after 0.01 seconds have passed. However, this will not work because Get(CurrentHostTimestamp) only provides an accuracy of 1 second. I've also considered including a loop that will perform a meaningless calculation with the side-effect of causing a delay. But this would not be precise and seems like a waste of computing cycles.

      Is there a workaround apart from running this script on a client rather than the server?

        1 2 Previous Next