Re: Display dialog and select button after so long - Final Code
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