Aquí hay un script que acabo de escribir que lo hará. Esto te llevará a la pestaña de atajos del panel de preferencias Teclado, y selecciona una fila de las columnas izquierda y derecha:
tell application "System Preferences"
activate
reveal anchor "shortcutsTab" of pane id "com.apple.preference.keyboard"
end tell
tell application "System Events"
tell application process "System Preferences"
repeat until (window 1 exists)
end repeat
tell window 1
#modify these to specify a row in the left column, or the right column, respectively
repeat until (row 3 of table 1 of scroll area 1 of splitter group 1 of tab group 1 exists)
end repeat
select row 3 of table 1 of scroll area 1 of splitter group 1 of tab group 1
repeat until (row 1 of outline 1 of scroll area 2 of splitter group 1 of tab group 1 exists)
end repeat
select row 1 of outline 1 of scroll area 2 of splitter group 1 of tab group 1
end tell
end tell
end tell
Aquí tienes la versión que puedes utilizar y que identifica las filas por su nombre. Un poco complicado, pero debería funcionar bien.
tell application "System Preferences"
activate
reveal anchor "shortcutsTab" of pane id "com.apple.preference.keyboard"
end tell
tell application "System Events"
tell application process "System Preferences"
repeat until (window 1 exists)
end repeat
tell window 1
#modify these to specify a row in the left column, or the right column, respectively
repeat until (rows of table 1 of scroll area 1 of splitter group 1 of tab group 1 exists)
end repeat
select (first row of table 1 of scroll area 1 of splitter group 1 of tab group 1 whose value of static text 1 is equal to "Services")
repeat until (rows of outline 1 of scroll area 2 of splitter group 1 of tab group 1 exists)
end repeat
select (first row of outline 1 of scroll area 2 of splitter group 1 of tab group 1 whose name of UI element 2 is equal to "Open URL")
end tell
end tell
end tell
0 votos
Mi script no funcionaba, arreglado, aunque es un poco más feo :(