• 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: UI Scripting Displays Pane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI Scripting Displays Pane


  • Subject: Re: UI Scripting Displays Pane
  • From: John Delacour <email@hidden>
  • Date: Sat, 6 Sep 2003 08:44:11 +0100
  • Mac-eudora-version: 6.1a2

At 6:04 pm -0700 5/9/03, Marconi wrote:
I can't figure this out. Once the below script opens the Displays Pref Pane, it becomes inactive. The System Preferences app is still foremost but neither display window is active. It's as though there's another, invisible, window active in System Preferences.

Without the window active, none of the 'click' commands work.

tell application "System Preferences" to activate

tell application "System Events"
tell application process "System Preferences"
click menu item "Displays" of menu "View" of menu bar 1
click radio button "Display" of tab group 1 of window "Apple Cinema Display"



All that can be done more simply like this:

do shell script "open /system/library/preferencepanes/displays.prefpane"


JD



.
_______________________________________________
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: UI Scripting Displays Pane
      • From: Jean-Baptiste LE STANG <email@hidden>
References: 
 >UI Scripting Displays Pane (From: Marconi <email@hidden>)

  • Prev by Date: Re: Searching for a folder in Applescript.
  • Next by Date: Re: UI Scripting Displays Pane
  • Previous by thread: UI Scripting Displays Pane
  • Next by thread: Re: UI Scripting Displays Pane
  • Index(es):
    • Date
    • Thread