• 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
Re: get selected text of message in Mail?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get selected text of message in Mail?


  • Subject: Re: get selected text of message in Mail?
  • From: Martin Orpen <email@hidden>
  • Date: Fri, 2 Sep 2005 11:24:07 +0100

On 2 Sep 2005, at 11:04, kai wrote:


On 2 Sep 2005, at 10:03, Gary (Lists) wrote:


Well, I liked the "preserve the original clipboard" politeness in Kai's
script, and obviously Martin's is shorter and speedy.



- and doesn't touch the clipboard. :-)

However, I'm now getting inconsistencies here, too - so I think my 'Enable GUI Scripting' question (which I realise was far too basic an oversight for Martin anyway) was a red herring. Needs a little more investigation...

Yeah - I'm outraged that you'd made that suggestion :-)

I've solved the G5 problem:

tell application "System Events"
tell process "Mail"
get value of attribute "AXSelectedText" of text area 2 of scroll area 2 of splitter group 1 of window 1
end tell
end tell


For some reason Mail on my Powerbook has the selection in "text area 1" and the G5s have the selection in "text area 1".

I've also left off the activation bit as you've spotted that it isn't necessary.

--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: get selected text of message in Mail?
      • From: Martin Orpen <email@hidden>
References: 
 >Re: get selected text of message in Mail? (From: "Gary (Lists)" <email@hidden>)
 >Re: get selected text of message in Mail? (From: kai <email@hidden>)

  • Prev by Date: Re: get selected text of message in Mail?
  • Next by Date: Re: get selected text of message in Mail?
  • Previous by thread: Re: get selected text of message in Mail?
  • Next by thread: Re: get selected text of message in Mail?
  • Index(es):
    • Date
    • Thread