• 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: Scripting Mail:get selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Mail:get selection


  • Subject: Re: Scripting Mail:get selection
  • From: John Delacour <email@hidden>
  • Date: Mon, 24 Feb 2003 20:41:40 +0000
  • Mac-eudora-version: 6.0a7

At 5:41 pm +0100 24/2/03, Philippe GRUCHET wrote:

Hi,

A simple and basic question about scripting Mail under Mach-O 10.2:

How to copy-paste to the Clipboard a user selection in any Mail's displayed (frontmost) window?

-- set userSelection to window 1's selection
-- set the clipboard to userSelection

But, 'selection' is not a Mail's keyword, nor 'content':

-- get window 1's content -- doesn't work

Both 'selection' and 'content' are understood by Mail, but not as we understand them. Remember Mail is spawned on planet Unix.

If you have a message selected in a message summary, you can get the text of the message like this:

tell app "Mail" to get the content of item 1 of (get selection)

which must be an obvious way to do it in that corner of the universe. As to making any sense of Mail or putting its vast and totally bizarre dictionary to any practical use, take Paul's advice -- or mine ... forget it! The only good thing about Mail is that it recognises junk. It takes some to know some.

JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Scripting Mail:get selection
      • From: cricket <email@hidden>
References: 
 >Scripting Mail:get selection (From: Philippe GRUCHET <email@hidden>)

  • Prev by Date: Re: Jon¹s Commands in Pig Latin
  • Next by Date: Re: Handler works only once
  • Previous by thread: Re: Scripting Mail:get selection
  • Next by thread: Re: Scripting Mail:get selection
  • Index(es):
    • Date
    • Thread