the dictation interface has changed from Mojave to Ventura and my macro to toggle dictation does not work because dictation is how a checkbox, and no longer a simple standard button
I can easily arrive at this menu with the Open Keyboard Preference Pane action below.
The button I am trying to toggle is displayed below, red arrow, lower image and is accessed via settings → keyboard → scroll down to dictation.
It can be turned on via the system settings menu (edit → Start Dictation...) as shown below, BUT once on there is no menu item to turn it off which is essential for privacy reasons.
The shortcut depicted as number 2 lower image only serves to turn on the microphone, not turn on dictation per se.
The apple script below which I create with UI Browser does not work with error message- " can't get of application process "System Settings""
thank you very much
tell application "System Events"
tell process "System Settings"
click checkbox 1 of group 4 of scroll area 1 of group 1 of group 2 of splitter group 1 of group 1 of window "Keyboard – ￼100%" of application process "System Settings"