Qlab system prefs

Hi Pros,

I would like to retrieve the folowing parameters from System Settings.
I got to that point to make Input sources section visible in the window.
But this point I’m stuck.Here is the code snippet which reveals it.
I need help getting input sources for the keyboard and getting the active one and setting the other one. Hope it is clear.
Thanks for the replies in advance.

	set the current pane to pane id "com.apple.preference.keyboard"
	delay 0.5
	reveal anchor "InputSources" of current pane
	--get the name of every anchor of current pane

Best,
Kalman

What OS are you on? The id differs on different OSes

Monterey the OS.
Thx

I’m on Sierra so I can confirm any of this.

Two things:

In this post, a Monterey user shows that an anchor’s name may contain underscores in lieu of camel case. So maybe try this:

reveal anchor "Input_Sources" of pane id "com.apple.preference.keyboard"

Alternatively, ‘get’ the anchors of the pane. The resulting list should include the one you’re after:

anchors of pane id "com.apple.preference.keyboard