• 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/Set text selected in a Mail.app message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Get/Set text selected in a Mail.app message (From: " Emmanuel M. Décarie " <email@hidden>)

  • Prev by Date: Get/Set text selected in a Mail.app message
  • Next by Date: Anybody to add only if absent to a group in address book?
  • Previous by thread: Get/Set text selected in a Mail.app message
  • Next by thread: Re: Get/Set text selected in a Mail.app message
  • Index(es):
    • Date
    • Thread