do shell script "open /Applications/Mail.app"
delay 3
tell application "System Events"
keystroke "n" using command down
delay 0.2
keystroke "" #TO
key code 48
keystroke "" #CC
delay 0.2
key code 48
keystroke "" #SUBJECT
delay 0.2
key code 48
keystroke "" #MESSAGE BODY
delay 0.2
tell process "Mail"
tell menu bar 1
tell menu bar item "Message"
tell menu "Message"
click menu item "Send"
end tell
end tell
end tell
end tell
end tell
delay 10
do shell script "killall Mail"
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.