• 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: Jean-Baptiste LE STANG <email@hidden>
  • Date: Sat, 6 Sep 2003 10:01:54 +0200

The following will work to :

tell application "System Preferences" to set current pane to pane 19

tell application "System Preferences" to set current pane to pane "com.apple.preference.displays"

@+ JB

Le samedi, 6 sep 2003, ` 09:44 Europe/Paris, John Delacour a icrit :

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.
_______________________________________________
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.

References: 
 >Re: UI Scripting Displays Pane (From: John Delacour <email@hidden>)

  • Prev by Date: Re: UI Scripting Displays Pane
  • Next by Date: Re: Eudora mail folders and "" root (JD?)
  • Previous by thread: Re: UI Scripting Displays Pane
  • Next by thread: Dream maintenance script
  • Index(es):
    • Date
    • Thread