Jump to content
Claris Platform 2023 Roadmap ×

Timeout developer application close!

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

Recommended Posts

Another way to approach this would be with an AppleScript applet (file), which would stay open. It would use the "idle" command, which uses almost no processing power, but just idles (duh) for the period of time you tell it, doing whatever you tell it to do between idles.

So it could check something; but what? Non-activity is a difficult thing to tell. The file itself doesn't register being modified until after you close it. The only way I can see would be to use a FileMaker calculation, Max ( Modification Date field ) on a table(s). This could be pretty slow to calculate on a big file.

You'd have to compare it to the current time, each time the Idle kicked in, so you could tell if it was >10 min..

The following, when saved as an AppleScript application, with the "stay open" option, will beep every 10 seconds (fun :P-)


on idle


delay 10

end idle

Link to comment
Share on other sites

Thanks for the reply. But I'll try to not involve any out side apps. Just one developer app. =)

Is it possible then to have a script that triggers a timer on launch and after 10 min it will pop up a warning with choice buttons of continue if no response it closes.

Are there any script examples of timed pop ups with timed respond button??



Link to comment
Share on other sites

There is no "timer" running in FileMaker. It can check the system clock, when a modification triggers such, or if you explicitly get/set a time. That is why people (transpower & me) are suggesting apps with very close ties to the operating system, which are capable of running timers. As transpower said, something built with the Unix shell would be your most powerful and secure mechanism. But I wouldn't know how to do that (yet). It may be simple enough; but it has to communicate 2-way with FileMaker.

The idle AppleScript app would work, but, as you say, it's another little app; which people could just throw away. Of course you could close the file if they did that. But it's not elegant.

You would like to build a test in FileMaker. But the very nature of your test, for someone NOT doing anything, is simply not possible in standard FileMaker, as far as I know. When FileMaker's not doing anything, it's (surprise) not doing anything; hence there is no mechanism.

Link to comment
Share on other sites

Thanks for your help!

How about "get time" and calculate 10 min from the time it got and then pop up a window happends that states "This application will shut down in 5min." in the background it calculate from the 10min+5min. So after 15 it exit the app!

Is that working??

Thank You


Link to comment
Share on other sites

Sure, but all of this stuff (popup window etc) has to be triggered by something: either a script being run by the user, or an event plugin. But if the database is idle then there is no event to trigger anything...

The abaility for FM Server to disconnect idle users may be the best (perhaps only) option that does not involve other apps.

Link to comment
Share on other sites

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