スクリプトエディタ開き
on changeKeyboardLayout(layoutName) tell application "System Events" to tell process "SystemUIServer" tell (1st menu bar item of menu bar 1 whose description is "text input") to {click, click (menu 1's menu item layoutName)} end tell end changeKeyboardLayout changeKeyboardLayout("U.S.")
macos - Switch to a specific input source in OS X - Super User
https://apple.stackexchange.com/questions/15173/changing-keyboard-input-language-on-mac-osx