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

Scripting Mail:get selection


  • Subject: Scripting Mail:get selection
  • From: Philippe GRUCHET <email@hidden>
  • Date: Mon, 24 Feb 2003 17:41:59 +0100

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

Does it need a 'tell application "System Events"' block?

I just need an handler to grab selected text.
Thanks in advance for your help.


Kind regards,
Philippe Gruchet/SVM Mac
VNU Publications France
http://svmmac.vnunet.fr
_______________________________________________
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: John Delacour <email@hidden>
    • Re: Scripting Mail:get selection
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: RE: Open QXD file
  • Next by Date: Jon¹s Commands in Pig Latin
  • Previous by thread: RE: Open QXD file
  • Next by thread: Re: Scripting Mail:get selection
  • Index(es):
    • Date
    • Thread