I guess we need to find a way to read the status of the TrueTone feature first. That's probably the essential bit.
This conversation first started at:
Nevermind This. Andreas said it wouldn't help
@dugdun, @6ixStacks, I guess you could start off with this:
Part 1 - return preferences while TT is off
open somewhere to note things down. you're going to send this note to this thread
turn TrueTone Off. Write "True tone off" as the title of the note.
open terminal
type this command: defaults read com.apple.systempreferences
paste it's output (all of it) under the "True Tone Off" title.
keep that note open.
Part 2 - return preferences while TT is on
open a new note. (keep the one in part 1 open)
turn TrueTone ON. Write "True tone ON" as the title of the new note.
quit terminal, and reopen it
In terminal, type/paste this command: defaults read com.apple.systempreferences
paste it's output (all of it) under the "True Tone ON" title. (in the new note, not the part 1 note.)
Part 3
Post both the notes on this thread, or PM them if you're uncomfortable with that. Make sure that we'll be able to know which one was outputted while true tone was off/on.
Maybe I'm wrong but unfortunately I think this won't help you.
These settings are stored in a root-only file (/private/var/root/Library/Preferences/com.apple.CoreBrightness.plist )
I think I can add a function to query the current state to BetterTouchTool, but I'll need to check whether that's possible.
//yep, next alpha will have an AppleScript function called is_true_tone_enabled that returns true or false.
tell application "BetterTouchTool"
set trueToneState to is_true_tone_enabled
end tell
Unfortunately I currently don't know how to get that nightshift information. I can make the BTT's internal nightshift state available in a variable, but I don't know how to query the system state. So that wouldn't be very useful.