• 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 and select button after so long - Final Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display dialog and select button after so long - Final Code


  • Subject: Re: Display dialog and select button after so long - Final Code
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 25 Aug 2011 17:28:12 -0500

On Aug 25, 2011, at 4:39 PM, Ball, Dan wrote:

Here is the final code if anyone else wants it....probably not the best
written scripts, but they work!  Must have Lion and turn on Enable access
for assistive devices in Universal Access System Pref pane.

You don't need GUI scripting to do the actual shut down (in Lion).
You can do this ...

tell application "System Events" to shut down

But you may need GUI scripting if you have open applications and documents.
You may need to Save documents and Quit applications.

As far as I know Lion doesn't have a way to disable that checkbox, I put
in an ER to have it unchecked by default, but nothing so far.

That check box needs to go away. It should be a preference in System Preferences, perhaps as a default value for the check box.

 _______________________________________________
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 and select button after so long - Final Code
      • From: KOENIG Yvan <email@hidden>
References: 
 >Re: Display dialog and select button after so long - Final Code (From: "Ball, Dan" <email@hidden>)

  • Prev by Date: Re: Display dialog and select button after so long - Final Code
  • Next by Date: Re: Finder Selection Bug in Lion
  • Previous by thread: Re: Display dialog and select button after so long - Final Code
  • Next by thread: Re: Display dialog and select button after so long - Final Code
  • Index(es):
    • Date
    • Thread