• 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: Luther Fuller <email@hidden>
  • Date: Fri, 17 Dec 2010 11:34:28 -0600

On Dec 17, 2010, at 10:00 AM, Steve Thompson wrote:

On 17 Dec 2010, at 06:29, Peter R Hawkes wrote:

Is there a way of forcing the window to the top?

A couple of people have mentioned the word activate but have asked System Preferences or the Finder. As your dialog box doesn't imply specific interaction with the Finder or System Events, this will make your script come to the front:


tell me to activate
set theDelay to the text returned of (display dialog "Number of Days" default answer "-1")

I use this ...

	activate me
	tell me to display dialog ...
	set x to ... of the result

If you save your script as a Faceless Background Application, this is required.
And, yes, don't tell the Finder or another application to do this unless it's necessary.


_______________________________________________
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
  • Follow-Ups:
    • Re: Display Dialog
      • From: Stan Cleveland <email@hidden>
References: 
 >Display Dialog (From: Peter R Hawkes <email@hidden>)
 >Re: Display Dialog (From: Steve Thompson <email@hidden>)

  • Prev by Date: Re: Icon bounds on the destop
  • Next by Date: Re: Display Dialog
  • Previous by thread: Re: Display Dialog
  • Next by thread: Re: Display Dialog
  • Index(es):
    • Date
    • Thread