• 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: set the monitor stop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set the monitor stop


  • Subject: Re: set the monitor stop
  • From: deivy petrescu <email@hidden>
  • Date: Sun, 16 Apr 2006 12:21:24 -0400


On Apr 16, 2006, at 5:40, email@hidden wrote:

Where I wrong?
(Applescript tell me it's wrong "slider 2"):


tell application "System Preferences" activate set current pane to pane "com.apple.preference.energysaver" end tell

tell application "System Events"
tell process "System Preferences"
tell window "Risparmio Energia"
set theSlider to slider 2 of tab group 1 of group 1 of window "Energy Saver"
set the value of theSlider to 1
end tell
end tell
end tell





thanks. ste


Too much information!
That is what is wrong. Try:
<script>
tell application "System Preferences"
	activate
	set current pane to pane "com.apple.preference.energysaver"
end tell

tell application "System Events"
	tell process "System Preferences"
		tell window "Risparmio Energia"
			set theSlider to slider 2 of tab group 1
			set the value of theSlider to 1
		end tell
	end tell
end tell
</script>

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


References: 
 >set the monitor stop (From: email@hidden)

  • Prev by Date: set the monitor stop
  • Next by Date: Re: clear apple menu's recent items script
  • Previous by thread: set the monitor stop
  • Next by thread: Re: Applescript-users Digest, Vol 3, Issue 204
  • Index(es):
    • Date
    • Thread