Enforcing ColorSync profiles


We had a need on certain machines to ensure that the ColorSync monitor profile was always set to a specific ColorSync profile, regardless of who logged in. This would ensure color consistency for all artwork created at a given workstation.

The first part of the solution was to write an AppleScript that set the display profile to the desired ColorSync profile:

property displayProfile : "/Library/ColorSync/Profiles/WDFA/WDFA.D65.g250.mac.icc"
on run
       tell application "ColorSyncScripting" to launch
       set displayFile to POSIX file displayProfile as alias
       try
              tell application "ColorSyncScripting"
                     repeat with x from 1 to (count of display)
                            set display profile of display x to displayFile
                     end repeat
              end tell
       on error errmsg
              activate
              display dialog errmsg
       end try
       tell application "ColorSyncScripting" to set quit delay to 5
end run

This script uses the “ColorSyncScripting” background app to set the display profile of all attached displays to our preferred profile.

The second part of the solution was to use the method of globally launching items at login described in another article here. This method ensures the script will be run at login for every user who logs into the machine.

Posted: Tue - November 18, 2003 at 09:44 PM      


©