Hi !
I try to write text with dictation in textedit with applescript.
I managed to create a script that runs dictation, but I can’t stop him to do his job as dictation transcription.
I have trying to say click “ok”, but it doesn’t work.
this is my code :
repeat
tell application "TextEdit"
activate
end tell
tell application "System Events" to click (menu item "Démarrer Dictée" of menu) of ¬
(menu bar item "édition" of menu bar) of (application process "TextEdit")
delay 5
tell application "System Events"
keystroke "return"
end tell
delay 5
print without print dialog
delay 5
tell application "TextEdit" to delete (every paragraph of document 1)
end repeat
return
Thank you very much for your help !!