osx - Applescript to click Done when dictating (Mac) -


i have script opens "dictation & speech", activates (turns dictation: on) , runs shortcut start dictating (system events keystrokes command d). works fine, want click done (or return key) after speech not heard. tried someone's answer stackoverflow.

here link: applescript automatically close dialog box after input?

but when it's done editing , return key pressed, there no text entered. maybe return key not pressed, , quits dictation?

edit: after research, found out dictation window (or tiny microphone popup) close if clicked anywhere except done. guessing when keystroke return happens, on different window, wondering how current window/pop-up click done key in it?

the done button button 1 of process "dictationim":

tell application "system events" tell process "dictationim"     click button 1 end tell 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -