Applescript to send the selected email as new mail

This applescript takes the subject and content of the selected mail and makes a new message:

tell application “Mail”
    set theSelection to selection
    set theMessage to item 1 of theSelection
    set theSubject to the subject of theMessage
    set theContent to the content of theMessage
    set newMessage to make new outgoing message with properties {visible:true, subject:theSubject, content:theContent}
end tell

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: