Re: Untitled window in OE
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.