Re: Display dialog frontmost?
Re: Display dialog frontmost?
- Subject: Re: Display dialog frontmost?
- From: Steven Angier <email@hidden>
- Date: Fri, 13 Sep 2002 09:11:36 +1000
On 12/9/02 11:21 AM, "Christopher Nebel" <email@hidden> wrote:
>
On Wednesday, September 11, 2002, at 01:26 PM, Paul Berkowitz wrote:
>
>
> If you activate a different app and then want the dd to display in
>
> front
>
> while there, then put it in the tell block to that app:
>
>
>
> tell application "Finder"
>
> activate
>
> display dialog "Boo"
>
> end tell
>
>
This will certainly work, but I want to point out that this sort of
>
thing is considered to be in bad taste, interface-wise. The user is
>
doing what they're doing, and it's presumptuous and rude to suddenly
>
jump in their face yammering on about how they need to choose a file
>
*right now*.
By that logic, you could also say that it is rude for a script to activate
another application, since that wasn't initiated by the user either.
And it is often a necessity that the user stop farting around and that they
do choose a file *right now*, because the AppleScript is trying to get work
done, and whatever the user is doing at that moment is impeding that.
Sometimes it makes perfect sense to put up a dialog over whatever
application happens to be in front.
Steven Angier
Macscript.com
_______________________________________________
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.