Re: Two problems
Re: Two problems
- Subject: Re: Two problems
- From: Shane Stanley <email@hidden>
- Date: Mon, 13 Apr 2015 21:27:16 +1000
On 13 Apr 2015, at 7:09 pm, Brian Christmas <email@hidden> wrote:
>
> that most other handlers return to after they’re finished
If that means what I think it does, each time that happens, another timer is going to be set. It sounds like you're setting lots of timers, so the delay is somewhat irrelevant.
> The second is that the main script is split into three script objects, but it seems that the first main script can continue running whilst the other script objects are active. I sort of expected that only one script could run at once
Strictly speaking, only one can. But what happens is that if you trigger a second one, the first one is interrupted until the second one has finished.
> If they can work together, how can I isolate each script until it’s finished?
It's hard -- there's no silver bullet. That's another reason why I think you need to break up your app, and separate the processes.
Once you start having polling loops in your app, it gets complex. If that polling loop takes much time, you need to disable other stuff while it's running.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >Two problems (From: Brian Christmas <email@hidden>) |