• 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: Script for the monitor pref pane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Script for the monitor pref pane
      • From: Martin Orpen <email@hidden>
  • Prev by Date: Re: lists and items and position of items
  • Next by Date: Re: Script for the monitor pref pane
  • Previous by thread: Re: Script for the monitor pref pane
  • Next by thread: Re: Script for the monitor pref pane
  • Index(es):
    • Date
    • Thread