Hey,
I would like to change my monitors from mirror to extended display.
During the system settings a screensaver should appear. When setiings are complete the screensaver should stop.
I tried the following script, witch is a combination from two other scripts.
The seperated scripts work, the combination does not.
The screensaver comes up and as soon as the preferences are activated the screensaver stops.
Could someone help me the get it working?
tell application “ScreenSaverEngine”
activate
end tell
tell application “System Preferences”
activate
set current pane to pane id "com.apple.preference.displays"
end tell
tell application “ScreenSaverEngine”
activate
end tell
tell application “System Events”
tell process “System Preferences”
tell window 1
tell tab group 1
click radio button “Rangschikking”
tell group 1
click checkbox 1
end tell
end tell
end tell
end tell
end tell
tell application “System Preferences” to quit
tell application “ScreenSaverEngine”
to quit
end tell