do shell script "open /System/Library/PreferencePanes/Displays.prefPane"
delay 2 --wenn Dein Rechner da langsamer ist... größerer Delay... I love GUI-Scripting
activate application "System Preferences"
tell application "System Events"
tell process "System Preferences"
if title of radio button 2 of tab group 1 of window 1 = "Anordnen" then
click radio button "Anordnen" of tab group 1 of window 1
click checkbox 1 of group 1 of tab group 1 of window 1
else
display dialog "Falsche Sprache oder kein 2. Monitor"
end if
end tell
tell application "System Preferences" to quit
Your email is never published nor shared. Required fields are marked *
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
CAPTCHA: 3 + five =
Notify me of followup comments via e-mail
Subscribe without commenting E-Mail:
AppleScript: Monitore synchronisieren aktivieren per Skript
do shell script "open /System/Library/PreferencePanes/Displays.prefPane"
delay 2 --wenn Dein Rechner da langsamer ist... größerer Delay... I love GUI-Scripting
activate application "System Preferences"
tell application "System Events"
tell process "System Preferences"
if title of radio button 2 of tab group 1 of window 1 = "Anordnen" then
click radio button "Anordnen" of tab group 1 of window 1
click checkbox 1 of group 1 of tab group 1 of window 1
else
display dialog "Falsche Sprache oder kein 2. Monitor"
end if
end tell
end tell
tell application "System Preferences" to quit