- Registriert
- 18.04.11
- Beiträge
- 3
Hallo zusammen,
ich hoffe, dass ich hier im richtigen Forum poste.
Ich habe seit mehreren Jahren ein Script laufen, welches mit per Knopfdruck die Aktiven Ecken deaktiviert und auch wieder reaktiviert. Nach OS updates konnte ich das Script auch schon mehrfach selbst anpassen. Seit OS High Sierra bekomme ich es aber leider nicht mehr zum laufen.
Vielleicht kann mir hier jemand helfen.
Das Script hängt beim Button, der aktiven Ecken und bringt folgenden Fehler:
„System Events“ hat einen Fehler erhalten: „button "Aktive Ecken..." of window "Mission Control" of process "System Preferences"“ kann nicht gelesen werden.
Hier das Script:
________________________________________________________
property theSavedValues : {"Schreibtisch", "Mission Control", "Mitteilungszentrale", "Dashboard"} -- for example
tell application "System Preferences"
activate
set current pane to pane id "com.apple.preference.expose"
tell application "System Events"
tell window "Mission Control" of process "System Preferences"
click button "Aktive Ecken..." -- on english computer: "Hot Corners …"
tell sheet 1
tell group 1
set theCurrentValues to value of pop up buttons
if theCurrentValues is {"-", "-", "-", "-"} then
repeat with i from 1 to 4
set thisValue to item i of theSavedValues
tell pop up button i
click
click menu item thisValue of menu 1
end tell
end repeat
else
copy theCurrentValues to theSavedValues
repeat with i from 1 to 4
tell pop up button i
click
click last menu item of menu 1
end tell
end repeat
end if
end tell
click button "OK"
end tell
end tell
end tell
quit
end tell
________________________________________________________
Vielen Dank vorab.
Gruß Vati
ich hoffe, dass ich hier im richtigen Forum poste.
Ich habe seit mehreren Jahren ein Script laufen, welches mit per Knopfdruck die Aktiven Ecken deaktiviert und auch wieder reaktiviert. Nach OS updates konnte ich das Script auch schon mehrfach selbst anpassen. Seit OS High Sierra bekomme ich es aber leider nicht mehr zum laufen.
Vielleicht kann mir hier jemand helfen.
Das Script hängt beim Button, der aktiven Ecken und bringt folgenden Fehler:
„System Events“ hat einen Fehler erhalten: „button "Aktive Ecken..." of window "Mission Control" of process "System Preferences"“ kann nicht gelesen werden.
Hier das Script:
________________________________________________________
property theSavedValues : {"Schreibtisch", "Mission Control", "Mitteilungszentrale", "Dashboard"} -- for example
tell application "System Preferences"
activate
set current pane to pane id "com.apple.preference.expose"
tell application "System Events"
tell window "Mission Control" of process "System Preferences"
click button "Aktive Ecken..." -- on english computer: "Hot Corners …"
tell sheet 1
tell group 1
set theCurrentValues to value of pop up buttons
if theCurrentValues is {"-", "-", "-", "-"} then
repeat with i from 1 to 4
set thisValue to item i of theSavedValues
tell pop up button i
click
click menu item thisValue of menu 1
end tell
end repeat
else
copy theCurrentValues to theSavedValues
repeat with i from 1 to 4
tell pop up button i
click
click last menu item of menu 1
end tell
end repeat
end if
end tell
click button "OK"
end tell
end tell
end tell
quit
end tell
________________________________________________________
Vielen Dank vorab.
Gruß Vati