Search code examples
colorsapplescriptcolor-management

How to get loaded monitor color profile with Applescript (or command line)?


Is there a way to retreive the loaded monitors color profile with Applescript, or at least with command-line, as I can use command-line in Applescript? I'm talking about the loaded color profile of all plugged monitors, the ones defined in "System Preferences -> displays -> color"

EDIT: I would like to get the name of the ICC profile, i.e. what is selected in "System Preferences" -> displays -> color", for each connected screen.


Solution

  • Try either of these:

    tell application "Image Events" to display profile of displays as list
    tell application "Image Events" to display profile of display 1
    

    You can get more (but not many) details in the Image Events dictionary under Image Suite.

    Display 0 and Display 1 both seem to produce the same result (built-in display). Display 2 would refer to an external display. I have a very simple set-up so depending upon yours, you may have to experiment.