• 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: Can't turn off screen savers in System Preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't turn off screen savers in System Preferences


  • Subject: Re: Can't turn off screen savers in System Preferences
  • From: deivy petrescu <email@hidden>
  • Date: Thu, 5 Oct 2006 21:20:36 -0400


On Oct 5, 2006, at 18:34, kai wrote:


On 4 Oct 2006, at 23:07, Bill Cheeseman wrote:

Am I correct in understanding you guys to say that the above long- form
script works on 10.4.6 and on 10.4.8 Intel while my short form doesn't? I
ask, because neither the short-form nor the long-form works for me on 10.4.8
PPC -- with or without the 'select' line.

No, Bill. Just to clarify my own experience (assuming I'm implicated as one of "you guys"), neither version (nor any GUI scripting variant discussed subsequently) works here.
http://lists.apple.com/archives/applescript-users/2006/Oct/ msg00067.html



C'mon kai, you are always one of the guys... :)

Using both GUI scripting and the shell, as suggested by kai, I see the change in the System Preferences pane, but it does not reflect this change in the screensaver default plist.

So combining the two scripts:
<script>
set r to (do shell script "defaults -currentHost read com.apple.screensaver idleTime ")
display dialog r


tell application "System Preferences" to set current pane to pane id "com.apple.preference.desktopscreeneffect"

tell application "System Events" to tell application process "System Preferences" to tell window 1 to tell tab group 1 to click radio button "Screen Saver"

tell application "System Events" to tell application process "System Preferences" to tell window 1 to tell tab group 1 to tell group 1 to tell slider 1 to set value to 240.0

delay 1

tell application "System Preferences" to quit

delay 1

display dialog r

<\script>

I get the same value for r before and after the script.
I've also noted that the slider moves by 60. 0 being "3" minutes and 360 being "Never".


I believe it does not stick in general.

I'll try in the Intel later.


deivy _______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Can't turn off screen savers in System Preferences
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: Can't turn off screen savers in System Preferences (From: Bill Cheeseman <email@hidden>)
 >Re: Can't turn off screen savers in System Preferences (From: kai <email@hidden>)

  • Prev by Date: Re: iTunes comments
  • Next by Date: Re: Can't turn off screen savers in System Preferences
  • Previous by thread: Re: Can't turn off screen savers in System Preferences
  • Next by thread: Re: Can't turn off screen savers in System Preferences
  • Index(es):
    • Date
    • Thread