GUI scripting beta in OS 10.2--sliders
GUI scripting beta in OS 10.2--sliders
- Subject: GUI scripting beta in OS 10.2--sliders
- From: "Cory Forsyth" <email@hidden>
- Date: Fri, 6 Feb 2004 09:27:22 -0700
I'm trying to create an applescript that sets the energy saver preferences. I
have it so far so that it will launch Energy Saver from w/in System
Preferences, and I can even have it move the sliders. I use "set value of
slider 1 of tab group 1 of group 1 to 901.0" to set the first slider all the
way to the right, "never", for example.
But I find that when I quit system preferences, the prefs never stick.
I also notice that when the script does its work, the text appears slightly
above and to the right of the slider that says "1 minute, 2 minutes, 3 minutes
... never" stays visible. If you use the mouse to drag the slider, that text
only appears while you're dragging the slider.
It seems that the visibility of that text is tied somehow to System Prefs
saving the preferences, because if I let the script do its thing and then I
grab and drag the slider very slightly, so that the text disappears when I let
go of the mouse, the preferences will be saved if I quit.
I've tried using "increment" to move the slider, but the same problem
exists...it doesn't save the preferences.
Any idea how to fix/change this? All I can think of at this point is to have
the mouse click on the slider by figuring out the screen coordinates.
cheers,
Cory
--
Cory Forsyth
email: cforsyth [at] alum [dot] pomona [dot] edu
email: cforsyth [at] singingtree [dot] com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.