Re: Timeouts & FileMaker Scripts
Re: Timeouts & FileMaker Scripts
- Subject: Re: Timeouts & FileMaker Scripts
- From: Bruce Robertson <email@hidden>
- Date: Fri, 05 Nov 2004 16:01:09 -0800
> Andi
>
> I suggest you need to write a control script which checks to see
> whether the previous script has terminated before running the next
> script. And if your scripts invoke a FileMaker Pro script, can I
> suggest you have a trivial call to FileMaker immediately after invoking
> the FileMake Pro script? If you invoke a FileMaker Pro script from
> AppleScript, control seems to be returned immediately to the
> AppleScript (effectively an "ignoring application responses" block).
> Frequently this is not what you want as subsequent actions depend on
> the FileMaker Pro script doing its thing. I've got into the habit of
> calling "modified" immediately after calling a FileMaker Pro script.
> Effectively this forces the AppleScript to wait until the FileMaker Pro
> script has finished doing its do.
>
> tell application "FileMaker Pro"
> activate
> tell document theDocument
> do script FileMaker script theScript
> --Call "modified"
> --Forces handler to wait for the database to complete script
> modified
> end tell
> end tell
Well the problem with this as I see it is that you ALWAYS get "true" as a
result of this script. Only tested briefly - but I can find no circumstances
under which I get any other answer. So I'm not sure how this gets us
anywhere.
_______________________________________________
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