Switch TO specific input source
I want to do something like:
set keyboard layout to 'QWERTY' or something like that.
The current keyboard layout appears to be saved in ~/Library/Preferences/ByHost/com.apple.HIToolbox.machineid.plist under the key
You can write preferences to this file using the
However, this seems to change the keyboard only about 80% of the time.
You can run Terminal commands from AppleScript easily using do shell script.