Re: Display Dialog
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