You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Posted on Dec 25, 2019 11:11 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 26, 2019 8:13 PM

You may find some help here...Script Editor User Guide for Mac - Apple Support


It says for Catalina but if you are not on Catalina click Table of Contents the once you choose a category and then a sub category you will get a drop down menu top left but only for High Sierra or Mojave.

Similar questions

1 reply

Help with apple script editor display color

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.