• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
System Events: Selecting Text in the Body of a Mail Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: System Events: Selecting Text in the Body of a Mail Message
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: Scripting mail attachments in Yosemite
  • Next by Date: Scale & watermark images using a script in TextWranlger
  • Previous by thread: Re: Scripting mail attachments in Yosemite
  • Next by thread: Re: System Events: Selecting Text in the Body of a Mail Message
  • Index(es):
    • Date
    • Thread