• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Gaining control of a Scripted Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Gaining control of a Scripted Application (From: Tim Barlow <b&email@hidden>)

  • Prev by Date: Re: Multiple disks with the same name
  • Next by Date: Re: Filemaker pro passwords
  • Previous by thread: Gaining control of a Scripted Application
  • Next by thread: Applescript for Eudora mail Filters
  • Index(es):
    • Date
    • Thread