Search code examples
macosapplescriptmessage

Place cursor in messages app text box


I am looking for a script that will place the cursor in the text field in the Messages App. I have looked for a keyboard shortcut to do this but cannot find one. Can anyone provide a script, or a similar one I can modify.

NB I am not a programmer or very familiar with AppleScript, but have been able to modify scripts that are close to my needs.

I need this as I am trying to make the messages app controllable using the built in dictation feature in Mac OS. I need a script I can assign to a voice command to place the cursor in the text field so that I can then dictate a message.

Many thanks.


Solution

  • If you are using dictation commands, in any application all you need to do is say the command “Show Numbers” and you will see this:

    enter image description here

    Then you would just say the command “Twenty” which will place your cursor right where you want it… in this case it would be the text field


    Also speaking the command “Show Comands” Will open up this window listing tons of dictation commands.

    enter image description here