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: KOENIG Yvan <email@hidden>
- Date: Fri, 26 Aug 2011 09:48:58 +0200
Le 26 août 2011 à 00:28, Luther Fuller a écrit :
> 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.
>
Hello Luther
There is already such a preference in the General Prefpane.
What is odd is that the preference setting is killed by the fact that the function is automatically re-activated by default on shutdown.
More annoying, we have no box offered when we use the Restart Prefpane to restart from an other device.
In this case the two ways to disable Resume are :
(1) press the option key during the shutdown part of the process
(2) empty the folder "Saved Application State" of the first volume from the newly booted system.
Yvan KOENIG (VALLAURIS, France) vendredi 26 août 2011 09:48:50
_______________________________________________
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