• 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: kai <email@hidden>
  • Date: Thu, 5 Oct 2006 23:34:42 +0100


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


While I was initially led to believe that some activate/select/OS version/Intel combination might work, it now seems that's not the case. Changes applied in this way don't persist. Anywhere. Yet.

I also found that the virtual changes caused by 'increment' and 'decrement'
actions fail to stick.

Ditto here.

I tried switching the window to 'show all' before quitting, but that didn't
help.

Ditto here.

The observation that the help attribute still shows the old value is
discouraging.

It certainly suggested to me that, in spite of the visual changes in System Preferences, the value-setting operation was not being properly completed - and would therefore be very unlikely to stick.


In case anyone doubts that the help property/attribute of a slider normally changes simultaneously to reflect its value, the following routine should help to demonstrate how a similarly constructed (but better configured) slider behaves. (The final setting is intended to restore the original value.)

----------------

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

set r to {}

tell application "System Events" to tell slider 1 of group 1 of ¬
	window 1 of application process "System Preferences" to ¬
	repeat with v in {0.0, 0.25, 0.5, 0.75, 1.0, value}
		set value to v
		set r's end to {|value|:value, |help|:help}
	end repeat

r --> {{value:0.0, |help|:"0%"}, {value:0.25, |help|:"25%"}, {value: 0.5, |help|:"50%"}, {value:0.75, |help|:"75%"}, {value:1.0, | help|:"100%"}, {value:0.672399997711, |help|:"67%"}}

----------------

As if to prove the point, GUI scripted changes to this slider *do* stick. So what we have here is clearly not a general System Events/ System Preferences bug; it's specific to anchor "ScreenSaverPref"'s slider.

In my script, I work around the problem by turning off the requirement of a
password to wake from sleep and screen saver. That way, the screen saver
popping up too soon doesn't really slow down my workflow, because the screen
saver goes away when I move the mouse. But I would rather not see it at all.

In that case, I'd definitely try: http://lists.apple.com/archives/applescript-users/2006/Oct/msg00058.html

:-)

---
kai


_______________________________________________ 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: Jim Marschke <email@hidden>
    • Re: Can't turn off screen savers in System Preferences
      • From: Philip Aker <email@hidden>
    • Re: Can't turn off screen savers in System Preferences
      • From: deivy petrescu <email@hidden>
References: 
 >Re: Can't turn off screen savers in System Preferences (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: scripting BOMArchiveHelper possible ?
  • Next by Date: Re: (no subject)
  • 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