Which pane are you wanting to trigger ?
Here, when I run a subset of your code I don’t find a button whose name resemble to “Sign in”
on run
try
if application "System Preferences" is running then do shell script "killall 'System Preferences'"
end try
repeat until application "System Preferences" is not running
delay 0.1
end repeat
tell application "System Preferences"
launch
activate
end tell
tell application "System Events"
tell process "System Preferences"
set frontmost to true
delay 1
tell window 1
get class of UI elements --> {scroll area, button, button, button, toolbar}
(get subrole of buttons) --> {"AXCloseButton", "AXZoomButton", "AXMinimizeButton"}
--click button "Sign In"
tell scroll area 1
class of UI elements --> {button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button, button}
name of buttons
(*
{"Général", "Bureau et écono-
miseur d’écran", "Dock", "Mission
Control", "Langue et
région", "Sécurité et
confidentialité", "Spotlight", "Notifications", "CD et DVD", "Moniteurs", "Économiseur
d’énergie", "Clavier", "Souris", "Trackpad", "Imprimantes
et scanners", "Son", "Disque de
démarrage", "iCloud", "Comptes
Internet", "App Store", "Réseau", "Bluetooth", "Extensions", "Partage", "Utilisateurs et
groupes", "Contrôle
parental", "Siri", "Date et heure", "Time
Machine", "Accessibilité", "Flash Player", "Java"}
*)
end tell -- scroll area
tell toolbar 1
class of UI elements --> {group, group, group, group}
tell group 1
class of UI elements --> {group}
tell group 1
class of UI elements --> {button, button}
description of buttons --> { "Précédent", "Suivant"}
end tell
end tell
tell group 2
class of UI elements --> {group}
tell group 1
class of UI elements --> {button}
name of button 1 --> "Tout afficher"
end tell
end tell
tell group 3
class of UI elements --> {static text}
value of static text 1 --> "Préférences Système"
end tell
tell group 4
class of UI elements --> {text field}
subrole of text field 1 --> "AXSearchField"
end tell
end tell
end tell
end tell
end tell
end run
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) mardi 7 avril 2020 10:14:39