Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get selected text of message in Mail?



An old message on this subject came up with this, among other, solutions for this problem.
activate application "Mail"
tell application "System Events"
tell process "Mail"
get value of attribute "AXSelectedText" of text area 1 of scroll
area 2 of splitter group 1 of window 1
end tell
end tell

However, this works only on incoming messages in the three panel view. It does not work if the message is displayed in its own window, nor in an outgoing message.


Does anyone have any suggestions for a universal solution, or at least one for an outgoing message?

-- Michelle

--
Your right to free speech does not incur an obligation for anyone to listen.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.