Re: Backlight using GUI scripting doesn't work...
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