System Events: Selecting Text in the Body of a Mail Message
System Events: Selecting Text in the Body of a Mail Message
- Subject: System Events: Selecting Text in the Body of a Mail Message
- From: Christopher Stone <email@hidden>
- Date: Fri, 10 Oct 2014 00:19:33 -0500
Hey Folks,
Thus far I'm not having any luck selecting the text in the body of an outgoing message in Mail.
Here are the bones of what I'm working with:
--------------------------------------------------- tell application "System Events" tell application process "Mail" set frontmost to true tell front window if group 1 of UI element 1 of scroll area 1 exists then tell group 1 of UI element 1 of scroll area 1 select static text 1 end tell end if end tell end tell end tell ---------------------------------------------------
Has anyone had success doing this and/or setting the body text?
At the moment all I want to do is select it, because I'm going to use Keyboard Maestro to create an embedded link.
Thanks.
-- Best Regards, Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden