Re: Gaining control of a Scripted Application
Re: Gaining control of a Scripted Application
- Subject: Re: Gaining control of a Scripted Application
- From: Jon Pugh <email@hidden>
- Date: Mon, 29 Oct 2001 21:42:19 -0800
At 9:06 PM +1100 10/28/2001, Tim Barlow wrote:
>
However, under certain circumstances Eudora wants to gain control to obtain data from the operator. It posts a message dialog that alerts the user that it wants your attention but the user is then unable to switch control to Eudora. This situation remains until the script times out.
This sounds like the infamous "OSASendProc" issue. You need to set this OSA callback before running a script so that you can provide your AEIdleProc to AppleScript's OSASend call. In fact, once you provide the OSASendProc, AppleScript calls that instead of AESend. You then call AESend for AppleScript, providing your parameters to AESend instead of AppleScript's defaults.
This is all described in Inside Mac: Interapplication Communication.
http://developer.apple.com/techpubs/mac/IAC/IAC-374.html#HEADING374-0
Good luck.
Jon