

Tell pop up button 1 of tab group 1 of window "Dictation & Speech" I found a thread in which the following Applescript was contained: tell application "System Events" to set p to (path to frontmost application) as string If value is "English (United States)" thenĬlick menu item "English (United States)" of menu 1īoth scripts are copied from my answer to How to use applescript to toggle the language setting of new dictation tool (10.8) - Stack Overflow. Tell pop up button 1 of tab group 1 of window 1 Tell application "System Events" to tell process "System Preferences" Or use UI scripting: tell application "System Preferences" If ] thenĭefaults write "Session Language" fr-FRĭefaults write "Session Language" en-US

K=".AppleSpeechRecognition.prefs DictationIMLocaleIdentifier" You could either edit property lists that store the setting and reopen the DictationIM process: #!/bin/bash
