Estoy cansado de hacer clic en la rueda de colores para obtener colores personalizados y me gustaría usar AppleScript para automatizar con BTT un simple botón para cambiar el color del texto seleccionado a un conjunto de estándares de la empresa. He podido llegar a abrir el Selector de Colores en Keynote con AppleScript, pero no puedo averiguar cómo hacer clic en el lápiz. Esto es lo que muestra el Inspector de Accesibilidad:
Este es mi código hasta ahora, pero la selección para hacer clic en Lápiz de Arándano sigue quejándose de que
Eventos del sistema tiene un error: No se puede obtener la ventana "Color del texto" del proceso de aplicación "Keynote".
tell application "System Events"
tell process "Keynote"
tell radio group of toolbar of window 1
-- This prevents it from toggling the button when already selected
if value of radio button "Format" = {{0}} then
click radio button "Format"
end if
end tell
tell scroll area 1 of window 1
click color well 1
end tell
end tell
tell application "System Events"
tell window "Text Color" of application process "Keynote"
tell splitter group 1
tell radio group "Pencils"
click radio button "Blueberry"
end tell
end tell
end tell
end tell
end tell
Cualquier consejo sería muy apreciado.