Re: OSAX within tells
Re: OSAX within tells
- Subject: Re: OSAX within tells
- From: Shane Stanley <email@hidden>
- Date: Fri, 19 Jan 2001 11:40:14 +1100
On 19/1/01 10:58 AM +1000, Jolly Roger, email@hidden, wrote:
>
I'm not sure I understand your comment in that context. You seem to be
>
suggesting that people do this:
>
>
tell application "Outlook Express"
>
-- display dialog is not an Outlook Express command,
>
-- so rather than not sending the command to OE, we
>
-- activate OE to circumvent the dialog-in-background
>
-- problem
>
activate
>
display dialog "blah"
>
end tell
>
>
...rather than this?:
>
>
-- no tell block, no problem!
>
display dialog "blah"
There _is_ a problem in your example if something other than the script is
frontmost -- it needs an activate anyway. And if something else is active
for some good reason, you're just slowing things down.
I can't believe that anyone is really worried about the time taken to call
display dialog -- I mean, it's peanuts compared with the time to for the
dialog to actually be drawn and used.
It all smacks of an anal need to set down rules...
--
Shane Stanley, email@hidden