J'essaie d'activer la dictée avec applescript et j'ai jusqu'à présent ce qui suit qui fonctionne.
Mais, Comment puis-je définir le menu déroulant pour la touche de raccourci en utilisant AppleScript ?
Voici le code AppleScript :
tell application "System Preferences"
reveal pane id "com.apple.preference.speech"
tell application "System Events"
tell process "System Preferences"
tell window "Dictation & Speech"
tell tab group 1
click radio button "Dictation"
tell radio group 1
if value of radio button "On" is 0 then
click radio button "On"
end if
end tell
end tell
if sheet 1 exists then
tell sheet 1
click button "Enable Dictation"
repeat while sheet 1 exists
end repeat
end tell
end if
end tell
end tell
end tell
quit -- optional
end tell