最終更新:2012-02-26 (日) 09:09:30 (4435d)  

Mac OS X/ディスプレイを検出
Top / Mac OS X / ディスプレイを検出

AppleScriptで操作(Lion)

英語

tell application "System Preferences" to activate
tell application "System Events"
        tell process "System Preferences"
                click menu item "Displays" of menu "View" of menu bar 1
                tell button "Detect Displays" of window 1 to click
        end tell
end tell
tell application "System Preferences" to quit

日本語

tell application "System Preferences" to activate
tell application "System Events"
	tell process "System Preferences"
		click menu item "ディスプレイ" of menu "表示" of menu bar 1
		tell button "ディスプレイを検出" of window 1 to click
	end tell
end tell
tell application "System Preferences" to quit

関連

参考