• 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: Backlight using GUI scripting doesn't work...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Backlight using GUI scripting doesn't work...


  • Subject: Re: Backlight using GUI scripting doesn't work...
  • From: kai <email@hidden>
  • Date: Sun, 8 Oct 2006 00:40:50 +0100


On 7 Oct 2006, at 22:58, Peter Baxter wrote:

This does not work either could you explain more fully what to do about the error?

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

tell application "System Events"
	tell application process "System Preferences"
		tell tab group 1 of window 1
			click radio button "Display"
			tell group 1
				tell slider 1
					repeat
						(*increment!?*)

					end repeat
				end tell
			end tell
		end tell
	end tell
end tell

You first need to identify the target UI element correctly, Peter. (There are 2 groups in the tab group, the last of which is the relevant one.) Then just use the correct syntax to perform an increment action - something like this:


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

tell application "System Preferences" to reveal anchor ¬
	"displaysDisplayTab" of pane id "com.apple.preference.displays"

tell application "System Events" to tell slider 1 of ¬
	group -1 of tab group 1 of window 1 of ¬
	process "System Preferences" to repeat until value is 1
	perform action "AXIncrement"
end repeat

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

---
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: Backlight using GUI scripting doesn't work...
      • From: Peter Baxter <email@hidden>
References: 
 >Re: Backlight using GUI scripting doesn't work... (From: Bill Cheeseman <email@hidden>)
 >Re: Backlight using GUI scripting doesn't work... (From: Peter Baxter <email@hidden>)

  • Prev by Date: Re: Backlight using GUI scripting doesn't work...
  • Next by Date: Re: Backlight using GUI scripting doesn't work...
  • Previous by thread: Re: Backlight using GUI scripting doesn't work...
  • Next by thread: Re: Backlight using GUI scripting doesn't work...
  • Index(es):
    • Date
    • Thread