• 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
GUI Scripting: Change Monitor Colors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GUI Scripting: Change Monitor Colors


  • Subject: GUI Scripting: Change Monitor Colors
  • From: Barbara Mueller <email@hidden>
  • Date: Mon, 30 Dec 2002 22:22:45 +0100

With the new GUI Scripting it is possible to select pop up bottons in a system prefpanes, according the example:

tell process "System Preferences"
click menu item "General" of menu "View" of menu bar 1
if my wait4window("General") is false then return false
tell window 1
tell pop up button 2
click
tell menu 1
if the name of every menu item contains "Graphite" then
click menu item "Graphite"




I wanted to script the PrefPane "Display", something like:
tell application "System Events"
tell process "System Preferences"
click menu item "Displays" of menu "View" of menu bar 1
if my wait4window("Displays") is false then return false
tell window 1
tell pop up button 0




The pop up button is supposed to be "colors" but how can I find out its number?
No number between 0 and 9 seems to work


Any ideas?
Barbara
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: GUI Scripting: Change Monitor Colors
      • From: Simon Forster <email@hidden>
  • Prev by Date: Re: Asking User Input on First Run only
  • Next by Date: Works in 9.2.2 and client10.2.2 but not server 10.2.3
  • Previous by thread: Re: Question regarding errors
  • Next by thread: Re: GUI Scripting: Change Monitor Colors
  • Index(es):
    • Date
    • Thread