RE: Retaining interactivity in other apps
RE: Retaining interactivity in other apps
- Subject: RE: Retaining interactivity in other apps
- From: Jon Pugh <email@hidden>
- Date: Wed, 26 Sep 2001 16:42:54 -0700
At 12:05 PM -0700 9/26/2001, Zavatone, Alex wrote:
>
When I execute an applescript command from Director, it is through use of
>
Bruce Epstein's zScript. After the command to "saveuserNetConfigs(the
>
application) is sent to the currently open applescript, Director appears to
>
go on hold. It appears that Applescript takes over and doesn't offer any
>
processing time to pretty much anything. Now the code that I'm using has to
>
wait on feedback from the network app or it will not know that it is safe to
>
proceed with the next command.
>
>
I've even gor a .5 second idle proces that sends a "Service animation
>
object" call back to Director but Director appears to be on hold.
>
>
Is there a way to make it so that Applescript just gives some background
>
time to other processes?
Not from an external. Director would need to integrate zScript into the main code so that they could provide an OSASendProc which would provide an AEIdleProc to the AESend call. The idle proc would pass events to Director's main event loop which come in during script execution. These events would make all apps more responsive.
However, you can almost never get to the main event loop from an external.
Jon