ログイン時にディスプレイの輝度が勝手に自動調節されてしまうため、以下のスクリプトを作成してログイン時に自動設定するようにした。
 
  1. ディスプレイの輝度を設定するAppleScriptの作成し.app形式で保存
    • tell application "System Preferences"
      	activate
      	set current pane to pane "com.apple.preference.displays"
      end tell
      
      tell application "System Events"
      	if UI elements enabled then
      		tell process "System Preferences"
      			
      			tell group 2 of tab group 1 of window "カラー LCD"
      				-- 輝度を0.9に設定
      				set value of slider 1 to 0.9
      				-- 輝度を自動調節 をOFF
      				if (value of checkbox 1 = 1) then
      					click checkbox 1
      				end if
      			end tell
      			
      		end tell
      	else
      		display dialog "補助記憶装置にアクセスできるようよう設定して下さい"
      	end if
      end tell
      
      quit application "System Preferences"
      
  2. システム環境設定の「ユーザーとグループ」を開き、ログイン項目に上記appを追加