Re: Force quit filemaker and reopen a file
Re: Force quit filemaker and reopen a file
- Subject: Re: Force quit filemaker and reopen a file
- From: "J. Stewart" <email@hidden>
- Date: Sun, 29 Jan 2006 07:54:38 -0500
On 1/28/06 at -0500 Lorne Golden said this
>I have a filemaker database hosted with filemaker unlimited 5.5 and it keeps
>crashing when accessed too often. I am looking into fixing it but in the
>meantime I was hoping someone could help me design an applescript that would
>periodically force quit the crashed database and then reopen it. any help
>much appreciated.
--> cut <--
property dly : 5 -- sets restart timing, set as needed
property rchk : 1 -- sets recheck timing, set as needed
property dbPath : missing value -- path to database file (as an alias)
on idle {}
tell application "System Events" to set foo to ("FileMaker" is in (name of every process)) -- line wrapped
if foo then
tell application "FileMaker Pro" to quit
return dly
else
tell application "FileMaker Pro" to open dbPath
return (rchk * hours)
end if
end idle
--> cut <--
Here's a starter. Compile it and save it as a stay open application. As configured it will monitor Filemaker by checking once per hour to see if it's running. If so it will quit Filemaker for 5 seconds then run it again. This doesn't do a "force quit" but quitting and restarting periodically may relieve the need for it. If "force quit" is what you really need, repost the request.
Set the dbPath property to an alias to your database before you attempt to test this.
This is a fairly straight-forward script but as always there should be some error checking added to make it bullet proof.
Assuming you want completely unattended operation, you can add the script to your "login items" with your account pref pane.
JBS
--
I couldn't repair your brakes, so I made your horn louder.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden