• 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: Mail.app selection of front window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail.app selection of front window


  • Subject: Re: Mail.app selection of front window
  • From: cricket <email@hidden>
  • Date: Fri, 28 Mar 2003 12:20:10 -0800

On Friday, March 28, 2003, at 10:57 AM, Andrew Oliver wrote:

Consequently, the only way I can see to get around this is to use the
clipboard, oh... except that Mail doesn't support any standard clipboard
commands which means, yet again, you'd have to resort to UI Scripting <urgh>

Clipboard commands are in Standard Additions and always have been. Please at least look at dictionaries or try to use commands before spamming several hundred people with poorly researched information.

You are correct that there is no way to get the selection in Cocoa applications, other than using UI scripting, which in this case, is fairly straightforward:

-- make sure window with selection is frontmost first
tell application "System Events"
tell application process "Mail"
click menu item "Copy" of menu "Edit" of menu bar 1
end tell
end tell

- cricket

----->
Software Entomologist  Mail for Mac OS X
http://www.apple.com/macosx/jaguar/mail.html
---------->
Eating the Initiative's technicolor food of strongness.
_______________________________________________
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: Mail.app selection of front window
      • From: John Delacour <email@hidden>
    • Re: Mail.app selection of front window
      • From: Jon Pugh <email@hidden>
    • Re: Mail.app selection of front window
      • From: Timothy Bates <email@hidden>
    • Re: Mail.app selection of front window
      • From: Andrew Oliver <email@hidden>
References: 
 >Re: Mail.app selection of front window (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Releasing a loaded script from memory
  • Next by Date: Truly weird, easy to replicate behaviour...
  • Previous by thread: Re: Mail.app selection of front window
  • Next by thread: Re: Mail.app selection of front window
  • Index(es):
    • Date
    • Thread