Re: How do I test if app is running / file is open?
Re: How do I test if app is running / file is open?
- Subject: Re: How do I test if app is running / file is open?
- From: "Brian Mickey" <email@hidden>
- Date: Wed, 4 Jan 2006 17:32:34 -0800
- Importance: normal
- Priority: normal
- Thread-topic: How do I test if app is running / file is open?
Hi Jim,
This will work, replace foo with the name of your database and the
display dialog line with a file open routine
tell application "FileMaker Developer"
with timeout of 5000 seconds
try
go to database "foo"
on error errString
if errString = "Object not found." then
display dialog "Database is not open " & errString
end if
end try
end timeout
end tell
Brian
On Dec 26, 2005, at 6:01 PM, Jim Hankins wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Actually yes on without Filemaker Server (this is a two employee
company so Filemaker server is not in the budget at the moment nor
required) It's not crashing, I'm merely trying to set this up so
that if I inadvertently close it and leave, the database remains
available. Logistically one computer is on one floor, one on
another. I'm merely trying to protect myself from myself on closing
the file and then making it impossible for my wife (my other
employee....grin) from not being able to access the file.
Point taken on the crash scenario and thanks.
On Dec 25, 2005, at 11:14 PM, Bruce Robertson wrote:
Greetings:
I'm trying to setup Filemaker Pro 8 with a keep alive in cron so
if it's
closed or crashes, it will startup again automatically. As it is a
shared
database, I want to see if I can also test to see that the file is
open as
well.
The below is all I have right now with this script being called
by cron every
5 minutes. I notice that it still executes at the moment as fmp
bounces every
5 minutes in the doc.
1. Sounds like you're not using FileMaker Server.
2. If you're having crashing problems with Filemaker you're doing
something
wrong. Like maybe running with system file sharing turned on. If
the app has
crashed there is a significant chance of file damage and you should
solve
the problem instead of making a damaged file restart automatically.
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.4 (Build 4042)
iQEVAwUBQ7CglGt0QUirMDRnAQjXoAf+MCoa0zINXJTsvw0wfQylQn3gmXJ+5tYa
o9jh57HPn4vzj/qpVghdiJPo2CK2gn/avWmEn4u2SA2zeRFbVb78IB7egpo3FQk9
dWdxC+kEo/+4YTc7SISlVEpJfCEPHW9uOiV73QTzjB2ZqBD9ichiON5Lo6a7bQdl
Vg+10hIxJzFHFqNP0643Tb81BrTeemtWsoOvoFnbJlnElBYgvEZKsgZW3L3GVbhH
Xa9icXAeYLaKtTawAkiyOxTWf6oWaCMpV7t3B3pRTBP1KmS0uE8sNmvWG6fOdLW7
imlOf6mdeojlKf2jBmrAtXUytVd4W8naxjLijn5rXO034Ui0QTuHSA==
=AJWR
-----END PGP SIGNATURE-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40anesthesia.ucsf.edu
This email sent to email@hidden
_______________________________________________
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