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: Bill Cheeseman <email@hidden>
- Date: Sat, 07 Oct 2006 17:53:15 -0400
- Thread-topic: Backlight using GUI scripting doesn't work...
on 2006-10-06 12:42 PM, hackmiester (Hunter Fuller) at
email@hidden wrote:
> 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?
Menu items don't exist until the menu is opened. So you have to click the
menu first, then click the menu item.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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