Re: Script for the monitor pref pane
Re: Script for the monitor pref pane
- Subject: Re: Script for the monitor pref pane
- From: Bernard Azancot <email@hidden>
- Date: Sat, 12 Mar 2005 18:03:31 +0100
Le 11 mars 05, à 20:38, email@hidden wrote
:
Message: 6
Date: Fri, 11 Mar 2005 12:22:45 +0000
From: Martin Orpen <email@hidden>
Subject: Re: Script for the monitor pref pane
on 11/3/05 12:04 pm, Bernard Azancot at email@hidden wrote:
I am obliged to go to the monitor pref pane, and push the screen light
cursor to the right.
Could a script do the same thing?
<http://lists.apple.com/archives/colorsync-users/2004/Sep/
msg00216.html>
--
Martin Orpen
===============
set bValue to 0.8
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.displays"
end tell
tell application "System Events" to tell process "System Preferences"
tell slider 1 of group 2 of tab group 1 of window 1 to set value
to bValue
end tell
tell application "System Preferences" to quit
================
I have tried your script but I got the following unexpected error
message after:
--tell slider 1 of group 2 of tab group 1 of window 1 to set value to
bValue
Error message:
'AS error: System events error
NSReceiverEvaluationScript Error: 4'
????
Yours.
Thanks for your help, Martin.
Bernard
_______________________________________________
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