How to change resolutions in 10.3

How do I change resolutions in OS 10.3? This is what I have so far, but it gives me an error on this line: set selected of row 5 of table 1 of scroll area 1 to true

tell application “System Preferences”
activate
end tell

tell application “System Events”
tell application process “System Preferences”
click menu item “Displays” of menu “View” of menu bar 1
delay 10
tell window “900U”
if (exists tab group 1) then
tell tab group 1
click radio button “Display”
delay 10
set selected of row 5 of table 1 of scroll area 1 to true
delay 10
end tell
end if
end tell
end tell
end tell
ignoring application responses
tell application “System Preferences” to quit
end ignoring

The easiest thing is to use the freeware CLI tool cscreen (download and install in “/usr/local/bin/”):

http://www.pyehouse.com/lynn/cscreen.php

Then you can use a “do shell script” call to it:

Jon


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]