• 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: Philip Aker <email@hidden>
  • Date: Thu, 05 Oct 2006 20:50:38 -0700

On 2006-10-05, at 15:34:42, kai wrote:

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.)

[..]

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.

But, as shown previously, they do not stick to the Dock's slider. I suspect that it's because Audio software uses a lot of sliders and those folks will have developed methods to handle the situation. But that doesn't mean that it's not a bug. What it means to me is that there is no default behavior that a developer could over-ride if required. Otherwise setting the slider's value would stick.

Back to the quest at hand though. The problem as I see it now is that when manually altering the value of the slider there are only two possible actions:

1. Drag the indicator.
2. Click at a point on the slider exclusive to the rectangle of the indicator.

IOW, all of the previous attempts at a solution, except for the dss method have been targeting the wrong area.

Of the two actions, System Events currently can't handle a drag but it's supposed to be able to handle a mouse click at an arbitrary location. I can for instance click a window's close button like so:

tell application "System Events" to tell application process "Finder"
set wpos to position of window 1
set x to (item 1 of wpos) + 12
set y to (item 2 of wpos) + 12
click at {x, y}
end tell

Therefore, we should be able to click at a location within the slider's bounds and have the indictor jump to that and have the value stick. However, I'm having a problem getting the slider to recognize the click at what I think is a valid point…

Aarrrggghhhh!

Philip Aker
email@hidden


 _______________________________________________
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

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: Can't turn off screen savers in System Preferences
  • Next by Date: Re: Filemaker - since we're at it...
  • 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