• 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
UI Scripting Display's Resolution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UI Scripting Display's Resolution


  • Subject: UI Scripting Display's Resolution
  • From: Aaron Valenta <email@hidden>
  • Date: Tue, 17 Feb 2004 17:33:56 -0500

Trying to create an applescript that changes the monitor's resolution to 1280x1024 but it's buried in so many UI elements that can't quite get it right. Here's what I have:

tell application "System Preferences"
activate
end tell
tell application "System Events"
tell process "System Preferences"
click menu item "Displays" of men "View" of menu bar 1
delay 3
select text field "1280 x 1024" of column 1 of table 1 of scroll area 1 of group 1 of tab group 1
delay 1
end tell
end tell

but no matter how I try to reword the actual selection of the 1280 x 1024 I keep getting "NSReceiverEvaluationScriptError: 4" so I realize my path to the text field isn't liked but don't know the proper command. Any help greatly appreciated.

Aaron
_______________________________________________
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 Display's Resolution
      • From: Joshua See <email@hidden>
    • Re: UI Scripting Display's Resolution
      • From: Simon Dorfman <email@hidden>
  • Prev by Date: Re: Mac Mail Questions
  • Next by Date: Re: Launching TextEdit with a TEXT document
  • Previous by thread: Re: Another address book question
  • Next by thread: Re: UI Scripting Display's Resolution
  • Index(es):
    • Date
    • Thread