• 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:45:57 +0100


On 6 Oct 2006, at 17:42, hackmiester (Hunter Fuller) wrote:

I have:

tell application "System Events"
	tell process "System Preferences"
		click menu item "Displays" of menu "View" of menu bar 1
		delay 3
		tell window "Color LCD"
			tell tab group 1
				click radio button "Display"
				delay 1
				tell group 1
					tell slider 1
						set value to 1
					end tell
				end tell
			end tell
		end tell
	end tell
end tell

It falls on its face with an NSReceiverEvaluationScriptError: 4. I have no clue why. Anyone have any ideas?

The problem is similar to that outlined in my recent reply to Peter Baxter, Hunter. Try:


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

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 set value to 1

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

---
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: "hackmiester (Hunter Fuller)" <email@hidden>
References: 
 >Backlight using GUI scripting doesn't work... (From: "hackmiester (Hunter Fuller)" <email@hidden>)

  • Prev by Date: Re: Backlight using GUI scripting doesn't work...
  • Next by Date: Re: Universal Applications
  • 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