• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Display Dialog is not frontmost in the Finder...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display Dialog is not frontmost in the Finder...


  • Subject: Re: Display Dialog is not frontmost in the Finder...
  • From: Christopher Sean Morrison <email@hidden>
  • Date: Thu, 16 Jun 2005 11:27:20 -0400

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).

Cheers!
Sean

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

Emile

 _______________________________________________
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

  • Follow-Ups:
    • Re: Display Dialog is not frontmost in the Finder...
      • From: Andrew Oliver <email@hidden>
References: 
 >Display Dialog is not frontmost in the Finder... (From: Emile Schwarz <email@hidden>)

  • Prev by Date: Display Dialog is not frontmost in the Finder...
  • Next by Date: Tiger UI distorted
  • Previous by thread: Display Dialog is not frontmost in the Finder...
  • Next by thread: Re: Display Dialog is not frontmost in the Finder...
  • Index(es):
    • Date
    • Thread