Re: Profile monitor for many users
Re: Profile monitor for many users
- Subject: Re: Profile monitor for many users
- From: John Gnaegy <email@hidden>
- Date: Mon, 28 Mar 2011 18:02:53 -0700
Thanks, I understand now. Unfortunately there isn't a simple way to do what you want to do. There's no way to propagate the display profile setting of an admin user to other users, and on 10.6.x there's no way to set a display profile without selecting the profile in System Preferences - Displays - Color.
You can set the display profile on 10.5.x using the AppleScript dictionary ColorSyncScripting, but that doesn't exist on 10.6. Almost all the abilities of ColorSyncScripting can be had on 10.6 using either the command line tool sips or the AppleScript dictionary Image Events. Almost all...the exception being setting the display profile.
It is possible to script this, but you'll have to allow the users to launch System Preferences. You'll have to enable User Access Scripting, write an AppleScript, and figure out how to set that script to launch when each users logs in. It's doable but it's not graceful.
As an admin user go to System Preferences - Universal Access and check "Enable access for assistive devices". This is a system level setting which all users inherit.
Create an AppleScript by launching AppleScript Editor in your Utilities folder, and paste in the following lines. Save that as an application (in the save dialog set File Format: Application).
----------------
-- change "my profile" to the name of the profile you want to select
tell application "System Preferences"
reveal anchor "displaysColorTab" of pane "com.apple.preference.displays"
set frontmost to false
end tell
tell application "System Events"
set visible of process "System Preferences" to false
tell process "System Preferences"
set rowArray to rows of table 1 of scroll area 1 of group 1 of tab group 1 of window 1
repeat with thisRow in rowArray
if value of static text of thisRow contains "my profile" then select thisRow
end repeat
--with only one display the above section is fine
--with more displays, add a similar section like this, note "window 2" for second display
(*
set rowArray to rows of table 1 of scroll area 1 of group 1 of tab group 1 of window 2
repeat with thisRow in rowArray
if value of static text of thisRow contains "my other profile" then select thisRow
end repeat
*)
end tell
end tell
tell application "System Preferences" to quit
----------------
Double click that app and it will launch System Preferences and set the display profile. Lastly you need to launch that when each user logs in, here's a link showing how to do that.
http://hints.macworld.com/article.php?story=20040524113537447
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Colorsync-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden