Re: Mail.app selection of front window
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.