Re: Get/Set text selected in a Mail.app message
Re: Get/Set text selected in a Mail.app message
- Subject: Re: Get/Set text selected in a Mail.app message
- From: Michelle Steiner <email@hidden>
- Date: Sat, 9 Dec 2006 10:27:38 -0700
On Dec 9, 2006, at 10:00 AM, Emmanuel M. Décarie wrote:
I just switched from Mailsmith to Mail.app and I'm not very
familiar with the scripting dictionary. I want to do a very simple
thing, which is to be able to get/set a selected text in a message.
I looked around the net, and in the Mail scripts from Apple, but
can't find a way.
You can't. Maybe in Leopard, but not in Tiger or earlier. Here is a
work-around:
tell application "Mail"
activate
tell application "System Events" to keystroke "c" using command down
set foo to the clipboard
end tell
-- Michelle
--
"There's some good in the world, Mr. Frodo, and it's worth fighting
for."
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden