Jump to content
Salesforce and other SMB Solutions are coming soon. ×

FMP AppleScript Question


jsosa73
 Share

Recommended Posts

I know I have seen this question somewhere...but can not find.

 

I have an AppleScript that will run every 120 seconds. The AppleScript primarily calls a FileMaker Script that once in a while takes longer than 60 seconds. How do I tell AppleScript to test FMP before running the do script command again? Note: I do not want adjust the amount of time until the AppleScript will run again.

 

Thanks

Link to comment
Share on other sites

Why don't you put the Loop in a FileMaker script instead of vice versa?

 

Loop

Set Field [g.Time, Get(CurrentTime)]

Perform AppleScript

If [Get(CurrentTime)-g.Time

Pause [for duration {120 - (Get(CurrentTime)-g.Time)}]

End If

End Loop

 

 

Of course if you want to return control of FileMaker to the local user, I can see why you wouldn't want to do it that way, but if it's firing every 120 secs you wouldn't get much data entry or report-running done anyhow, right?

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

Terms of Use