Re: Display Dialog
Re: Display Dialog
- Subject: Re: Display Dialog
- From: "Stockly, Ed" <email@hidden>
- Date: Fri, 17 Dec 2010 16:34:26 -0600
- Acceptlanguage: en-US
- Thread-topic: Display Dialog
Title: Re: Display Dialog
My suggestion is that it depends on what’s happening in your script when the dialog is called.
I put display dialogs inside tells for whichever application my script has brought to the front (even though that’s frowned upon). If your script has brought Finder to the front, then your display dialog should be inside a Finder tell. Otherwise, you waste your user’s time while apps switch positions in the process hierarchy.
If you’re not sure what app is frontmost when the dialog is called, then I would use system events.
If you know it’s your script application that’s frontmost, or whatever application is running the script (like from a script menu) then I would use tell me.
ES
On 12/16/10 10:29 PM, "Peter R Hawkes" <email@hidden> wrote:
set theDelay to the text returned of (display dialog "Number of Days" default answer "-1")
The dialogue box appears behind other Windows. Is there a way of forcing the window to the top?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden