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: Andrew Oliver <email@hidden>
- Date: Thu, 16 Jun 2005 10:32:05 -0700
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:
This email sent to email@hidden