Jump to content
Server Maintenance This Week. ×

How to restart FileMakerPro automatically when it's get disconnected from the host.


Megalo

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

Recommended Posts

We've got CTI plug-in integrated into our FileMaker system.

When it gets a call from someone, it kicks filemaker script, passes caller's ID and shows Customer's Info. It's working perfectly.

The problem that we are facing now is that Filemker gets disconnected from the host sometimes.

Then it shows this error "Communication with the host was interrupted and could not be re-established. All affected windows will be closed."

Once this happens, it never work untill I restart FileMakerPro itself.

I tried to figure out to overwhelm this but in consequence had no idea:(

You cannot command or kick any script while FileMaker pro is showing error message.

This system is running on MacOS Lion.

Is there any good way to detect disconnection error and restart FileMakerPro?

Link to comment
Share on other sites

Try running a network cable between the robot (client) computer and the switch nearest the server, and/or replacing all cables/switches in that path. Despite all the advice against it, I have never experienced problems running a robot on a server computer. You cannot trap this error within Filemaker. Obviously, addressing the root cause is preferred. Absent that, you can use Applescript to detect the error dialog, send a key to acknowledge it, and re-open the file and run a script, similar to what 'Okey Dokey Pro' used to do in the OS9 era, at least the acknowledge part. So you would activate the application & send a keystroke. I haven't used Applescripts for a couple years, presumably first, you'd test if client was disconnected, I'm assuming Filemaker fails to respond to Apple Events in that case and could be detected that way, otherwise you'd have to search for the window. Alternately, you could just use two files: an opener and the remote client DB. Sending enter acknowledges the dialog; you then delay, and send the key to run macro #1 of the opener, which opens the remote DB and starts the script. Or the Applescript could directly open the remote file & run the macro.

Link to comment
Share on other sites

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