Re: get selected text of message in Mail?
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