Guest User

Untitled

a guest
Jun 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. set monitorList to {"LG UltraFine (1)", "LG UltraFine (2)"}
  2. set brightnessValue to 0.7
  3.  
  4. tell application "System Preferences"
  5. reveal anchor "displaysDisplayTab" of pane "com.apple.preference.displays"
  6. end tell
  7. tell application "System Events"
  8. repeat with monitor in monitorList
  9. set value of slider 1 of group 1 of tab group 1 of window monitor of process "System Preferences" to brightnessValue
  10. end repeat
  11. end tell
  12. quit application "System Preferences"
Add Comment
Please, Sign In to add comment