• 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
Mail Body?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail Body?


  • Subject: Mail Body?
  • From: "@lbutlr" <email@hidden>
  • Date: Sun, 31 Dec 2017 10:25:21 -0700

I believe this used to be possible:

tell application process "Mail"
  set frontmost to true
  tell scroll area 1 to tell UI element 1 to set focused to true
end tell

But script editor throws an error:

Can’t get scroll area 1 of application process \"Mail\". Invalid index." number
-1719 from scroll area 1 of application process "Mail"

I am trying to place the cursor into the body of the mail compose window.


--
No Sigs. Blame Apple.
 _______________________________________________
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

  • Prev by Date: Using AS to put a password on zipped files (was Re: relative paths etc...)
  • Next by Date: Re: Using AS to put a password on zipped files (was Re: relative paths etc...)
  • Previous by thread: Re: Using AS to put a password on zipped files (was Re: relative paths etc...)
  • Index(es):
    • Date
    • Thread