Selecting text in a text field?

Hello,

I’m creating a small script to automate a few tasks, but I’ve run into a problem. I don’t have a ton of experience with AppleScript, so I should probably know this, but I can’t figure it out.

How do I select a text field, so it’s highlighted, and editable with a cursor in the text box? I have an application that I need to send a command-S command to, however you have to be in one of the text boxes and done typing before it will let you send this command.

I already have the script setting the value of the text field, I just need it to then click the text field to highlight it, so I can issue the save command.

Can anyone help me out? Thanks so much :slight_smile: