• 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: Untitled window in OE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Untitled window in OE


  • Subject: Re: Untitled window in OE
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 27 Oct 2002 07:08:28 -0800

On 10/27/02 3:06 AM, "John Clark" <email@hidden> wrote:

> Thanks Paul, it worked a treat.
>
> The initial idea with using the draft window was culled from Ethan Wildes'
> book "Applescript fo Applications"
> Your work around is much more efficient
>
I'm glad it worked well. It's not really a "workaround" (although I know
what you mean) in that AppleScript is actually _meant_ to control an
application directly, as my 'outgoing message' method did, rather than
simply automate the user interface, as the 'draft window' method attempted
to do or a "macro utility" such as QuicKeys might. Perhaps the example in
the book was designed to show you something you could "see with your own
eyes" but, at least in the form you presented here, that's misguided - aside
from having not been tested with a fast computer like yours. Readers should
be shown how to use the true power of AppleScript to work behind the scenes,
as it has been very well implemented in OE. However, should you ever really
need to control a window that needs to be opened first, you can insert:

repeat while (not exists window "Some Name")
end repeat

That will take only a split second, and will not interfere with the
window-opening process. As soon as everything is place, the rest of the
script will proceed.

--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >RE:Untitled window in OE (From: John Clark <email@hidden>)

  • Prev by Date: Re: Sending mail without requiring a confirmation
  • Next by Date: Re: Dialog Director - Quit action
  • Previous by thread: RE:Untitled window in OE
  • Next by thread: Persistent Global Variable?
  • Index(es):
    • Date
    • Thread