RE: Display Dialog is not frontmost in the Finder...
RE: Display Dialog is not frontmost in the Finder...
- Subject: RE: Display Dialog is not frontmost in the Finder...
- From: "Grimm, Kenneth" <email@hidden>
- Date: Thu, 16 Jun 2005 14:25:25 -0400
I've had luck with this construct as well when nothing else seemed to work:
tell me to activate
display dialog "blah blah blah"
The "tell me to activate" makes the script itself active above all others.
Not including this line as made hidden dialog boxes behind other apps' open
windows and modal dialogs.
Ken
> ----------
> From:
> applescript-users-bounces+kgrimm=email@hidden on
> behalf of Andrew Oliver
> Sent: Thursday, June 16, 2005 12:32 PM
> To: Christopher Sean Morrison; email@hidden
> Cc: AppleScript Users List
> Subject: Re: Display Dialog is not frontmost in the Finder...
>
> On 6/16/05 8:27 AM, "Christopher Sean Morrison" <email@hidden> wrote:
>
> > Try telling Finder to 'activate' first. That will bring Finder to the
> focus
> > letting the dialog receive the input. You can capture the current
> application
> > and return to it as well, though that's an exercise left to the reader..
> ;)
> > (the script I posted yesterday does this).
> >
>
> The simplest solution is to not tell the Finder to display the dialog.
>
> Display dialog is a standard addition and as such will work anywhere, in
> any
> app. The fact that you're telling the Finder to display the dialog is what
> causes the focus issue if the Finder isn't active/frontmost.
>
> However, by just using 'display dialog "blah blah blah"', it'll pop up in
> whatever app is frontmost..
>
> Andrew
> :)
>
> > On Jun 16, 2005, at 8:00 AM, Emile Schwarz wrote:
> >
> >> Hi,
> >>
> >> the following script displays a window (as requested), but the OK
> button have
> >> the 'front window' look (not disabled), but a keypress on the Return or
> Enter
> >> key does not do what one expect. In fact, the dialog is not 'frontmost'
> and
> >> so if you click in the window, it comes frontmost and then you can
> press
> >> Return or Enter to fire the OK button.
> >>
> >>
> >> tell application "Finder"
> >> display dialog "Is it a bug ?"
> >> end tell
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> rdtimes.com
>
> This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden