Re: Can't turn off screen savers in System Preferences
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: Sat, 7 Oct 2006 17:39:47 -0400
On Oct 6, 2006, at 7:50, Bill Cheeseman wrote:
on 2006-10-05 9:20 PM, deivy petrescu at email@hidden wrote:
I've also noted that the slider moves by 60. 0 being "3" minutes and
360 being "Never".
That isn't quite right here. If you 'get' the value of the slider
after
manually setting it to Never, the value is 361, not 360. And the
AXMaxValue
attribute of the slider is always given as 361 when you examine it
with UI
Browser or Accessibility Inspector.
Yes. I thought otherwise because I would set it to something and
apparently it would stick to that value. This is what you discuss at
the end of your message.
<snip>
However, between 2 hours and 3 hours you can't drag it to any
intermediate
I don't have 3 hours, you probably meant "Never", right?
value at all. I don't see a similar snap effect in any of the other
sliders
in System Preferences that I tried, so it was apparently coded
specifically
for this one slider. I'll wager that this snap effect is the source
of the
bug causing the value to fail to stick when set using the
accessibility API
(both GUI Scripting and UI Browser), as described in the remainder
of this
message:
<snip>
You can't set any value between 241 and 360, inclusive. UI Browser
gives a
range error; GUI Scripting, manually dragging and manually clicking
snaps it
to 240 or 361. You also cannot set the value to any number below
10, other
I think you mean 300 and 360. I can set mine to any value between 240
and 300.
than 1. The values 2 though 9 generate an out of range error In UI
Browser,
while in GUI Scripting and manual use they snap the value to 1 or
10. Each
of the other "snap" zones seems to be unsettable by any means, as
well.
<snip>
Finally, using UI Browser's Attributes drawer to set the value to
any legal
value also fails to stick when you quit System Preferences and
restart it.
Here I take issues with you. I believe it does not stick period!
If you change the dial manually it sticks immediately, you can read
it from the defaults value. Changing it via UI does not affect the
value. So it is "moved" but never "changed". And this is independent
of quitting and restarting SP.
Since GUI Scripting and UI Browser use essentially the same
accessibility
API code under the hood, this establishes that the bug lies in the
implementation of accessibility support in this slider. I would
guess that
the complexities of this dead zone implementation of the snap
effect led the
programmer who made this slider accessible to an error which causes
the
value to fail to stick in response to accessibility commands.
Here, I have no qualms...
--
Bill Cheeseman - email@hidden
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