how to write an AppleScript to change the color profile ?
Here is my Mac information, big sur system and Dell u2720qm monitor. I often need to change the color profile on my secondary display, and it really bother me to take so many steps to do it. so I want to change quickly. so how would you write an AppleScript to open System Preferences, go to the Display preferences on the secondary display and change the color profile? and how to switch the color profile quickly between Display P3 and SMPTE RP 431-2-2007 DCI(P3). I know little about the computer, so would you please give me the detailed explanation or the specific procedures how to do it. I would be so grateful if you could take some time to help me. thank you!
Mac mini, macOS 11.5