• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display Dialog


  • Subject: Re: Display Dialog
  • From: Mr Tea <email@hidden>
  • Date: Fri, 21 Sep 2001 20:37:30 +0100

This from Styrstr?email@hidden - dated 19/9/01 4.19 pm:

> I wonder how I get the dialog window to the front of all other running
> applications??

When you invoke 'display dialog' in a tell block, it will be displayed by
the app that the tell block is directed at, otherwise it will be displayed
by the script itself (if an applet) or by the utility that is running the
script (eg OSA menu)

If you don't know what application will be frontmost when the dialog
displays, you could try this...

set theFrontApp to name of (every process whose frontmost is true) of
application "Finder" -- [all one line]
tell application theFrontApp
display dialog "Is this what you meant?"
end tell

(tested with AS 1.6/OS 9.1)

Mr Tea
--
"Always remember to warm the pot."

Visit the Tea Room at:
http://homepage.mac.com/mrtea/tearoom.html


  • Follow-Ups:
    • Re: Display Dialog
      • From: Paul Berkowitz <email@hidden>
References: 
 >Display Dialog (From: Styrström)

  • Prev by Date: Re: copy excel cells to filemaker
  • Next by Date: Re: ACGI Timeout again
  • Previous by thread: Display Dialog
  • Next by thread: Re: Display Dialog
  • Index(es):
    • Date
    • Thread