In the Google Chrome browser (on Mac), you can activate Google Voice Search by pressing Command + Shift + Period from htttp: //google.com.
Assuming the http://google.com URL is loaded on the chrome tab with the search box in focus, should the following applescript not work?
tell application "Google Chrome" activate tell application "System Events" to keystroke "." using {command down, shift down} end tell
For some reason this will not work, and I do not understand why, since the following script will fill the search field with text, as expected:
tell application "Google Chrome" activate tell application "System Events" to keystroke "this test works as expected" end tell
How can I initiate google voice search using script?
source share