Re: How to make AppleScript wait for FileMaker to complete a script?
Re: How to make AppleScript wait for FileMaker to complete a script?
- Subject: Re: How to make AppleScript wait for FileMaker to complete a script?
- From: Simon Forster <email@hidden>
- Date: Thu, 31 Mar 2005 22:42:55 +0100
On 31 Mar 2005, at 17:57, Dennis Jones wrote:
In the AppleScript below, I need to make the AS script wait while a
FileMaker script runs.
Wrap the call in a "with timeout" block and then add a trivial call to
FileMaker to do something else. As FileMaker is single threaded, the
second event will be blocked until the do script step returns. I use
"modified" which simply returns a boolean as to whether the database
has been changed. So:
tell application "FileMaker Pro 6"
do script scriptToRun
end tell
becomes:
with timeout of 600 seconds
tell application "FileMaker Pro 6"
do script scriptToRun
modified
end tell
end timeout
Works for me in about half a dozen scripts.
HTH
Simon Forster
_____________________________________________________
LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
Tel: +44 (0)870 1999 780 Fax: +44 (0)70 9230 5247
_____________________________________________________
_______________________________________________
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