G’day scripters.
Probably a basic question, but I can’t find the answer anywhere.
In a text file that I want the user to enter email addresses in, I can’t work out how to place a return in the text whenever and wherever a user hits ‘return’.
I’m using this to add a return at the end of the text, but then the field selects ALL the text, and does not place the cursor at the end.
on setMailList2:sender
if (last paragraph of my mailAddressesSecondaryError) is not in {"", return} then set my mailAddressesSecondaryError to my mailAddressesSecondaryError & return as text
my saveTheGeneralData()
end setMailList2:
How can I place the cursor at the end, or insert a ‘return’ in the text if the user has the cursor placed part way through the text paragraphs, please?
Regards
Santa
Model: Late 2014 retina i7, Yosemite
AppleScript: 2.4
Browser: Safari 600.2.5
Operating System: Other