Re: Maybe not the Finder, but a 'wait for FMP' problem [WAS: Re: R23's Osaxen Rant]
Re: Maybe not the Finder, but a 'wait for FMP' problem [WAS: Re: R23's Osaxen Rant]
- Subject: Re: Maybe not the Finder, but a 'wait for FMP' problem [WAS: Re: R23's Osaxen Rant]
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 29 Jan 2001 08:57:50 -0800
On 1/29/01 8:13 AM, "Craig Sutherland" <email@hidden> wrote:
>
At 5:45 AM -0500 1/29/01, Bill Cheeseman wrote:
>
> on 1/28/01 8:36 PM, Paul Berkowitz at email@hidden wrote:
>
>
>
>> How can I tell my script to wait until the 'do script' command has
>
>> completely finished running before doing anything else?
>
>
>
> I don't know if there's any mechanism built into FMP to do this. But your
>
> FMP script could set a hidden field/variable ("I'm done"), and your
>
> AppleScript could wait in a delay loop or idle handler to see that variable
>
> (and clear it when found).
>
>
>
> -
>
Could this be done with a global variable that has a value set at the
>
beginning of the FM script and then the value changes at the end which would
>
then let you AS resume?
>
I've thought of this too. It seems the simplest approach, but again it means
that a delay loop or handler will have to work properly while FMP is busy.
Thanks. All this is fairly cumbersome to test because I can't replicate the
problem on my own machine. I have to keep sending debug versions to the user
to test and wait to see what happens. Thanks for the suggestion.
--
Paul Berkowitz