I tried to use AppleScript to adjust Display > underscan from Off to 2nd level of the underscan setting bar. Because my Mac Mini automatically turns off the underscan setting every time I turn on the TV, or wakes up from sleep.
I took reference to some coding online, and did make the code to open the "Settings" and "Display" tabs, but I don't know the next step. Does anyone know what other encodings should be?
My Code:
activate application "System Preferences"
tell application "System Events"
tell process "System Preferences"
click button "Displays" of scroll area 1 of window "System Preferences"
delay 0.5
tell tab group 1 of window "42PFD5519/30"
click radio button "Default for Display"
-- What code should i use?
end tell
end tell
delay 0.5
quit application "System Preferences"
end tell
And Reference Photo
