Help with apple script editor display color
I am so close to what I'm trying to achieve. I had to reword a little bit of a script I found online to get to the point where I am. The original script was to toggle night mode without the system settings tab getting in the way. What I'm trying to do is select a specific display profile from my retina display tab.
Here is what I got so far:
--
tell application "System Preferences" to reveal the ¬
anchor named "displaysNightShiftTab" of ¬
pane id "com.apple.preference.displays"
tell application "System Events" to tell ¬
process "System Preferences" to tell ¬
window 1 to tell ¬
tab group 1 to tell ¬
checkbox "Turn On Until Later Today" to ¬
perform action "AXPress"
quit application "System Preferences"
--
And here is the profile I want it to click before closing
I'm not good at apple script editor at the moment so I really could use some help here. All I want is for it to select "LessBrightt" before closing, without the settings popping up in my way. I've got as far as to get to the color tab, but that's it.
MacBook