No where in this script. Is this the entire script?
But maybe in the last script step:
Perform Script ["Email Handler"]
Probably in this script. If you can post it we can see
As far as I know, there is no way to do that. Your script shown here, BTW, just sets the values in a bunch of global variables. Presumably, the Email Handler script actually opens the Send Mail dialog and references these variables in that dialog to set up your email.
Why is it important to set the cursor at that location? (There's probably a way to work around this issue.)
Thank you, Steve. Here is the Email Handler script:
>>Why is it important to set the cursor at that location? (There's probably a way to work around this issue.)
The reason is because it's what we're used to in Gmail. I'm trying to replicate the Gmail experience as closely as possible so my employees will actually use this feature.
While you can't control the cursor position in the body edit box of the Send Mail dialog, you can control the cursor position in a text field. Thus, one way to get that result is to create a layout for your emails with actual text fields for each of the parts of your email dialog. Then you put a "send" button on this layout that performs a script with the send mail script step that pulls in the data from your text field and sends out the email without ever showing the user the Send Mail Dialog.
Set Selection is a script step that can place the cursor at the start of an actual text field. This is the detail that won't work with the actual send mail dialog but will work on an "email" layout such as I have described here.
Thank you for your replies,all. I'm going to put this back on my developer.