Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Applescript to send current mail message

0 views
Skip to first unread message

Steve Hodgson

unread,
Nov 22, 2009, 5:10:28 PM11/22/09
to
Is there an easy way to send the current message using Applescript
rather than the application menu?
--
Cheers,

Steve

The reply-to email address is a spam trap.
Email steve 'at' shodgson 'dot' org 'dot' uk

Steve Hodgson

unread,
Nov 26, 2009, 6:27:23 PM11/26/09
to
On 2009-11-22 22:10:28 +0000, Steve Hodgson said:

> Is there an easy way to send the current message using Applescript
> rather than the application menu?

It turns out that this is pretty straightforward:

tell application "Mail" to activate
tell application "System Events"
tell process "Mail"
tell menu bar 1
click menu bar item "Message"'s menu "Message"'s ¬
menu item "Send"
end tell
end tell
end tell

Requires Access for Assistive Devices to be enabled I think.

0 new messages