tell application "System Preferences" activate set current pane to pane "com.apple.preference.displays"end telltell application "System Events" to tell process "System Preferences" tell slider 1 of group 2 of tab group 1 of window 1 to set x to value display dialog xend tell