title: Incorrect sender when sending Email via Applescript
body: <p>The Applescript below is in the form that I have used for a number of years. And is basically a well known method of sending emails using Applescript.</p>
  <pre><code> tell application &quot;Mail&quot;
      set newMessage to make new outgoing message with properties {subject:&quot;IP Address&quot;, content:&quot;Your IP Address Is: 86.195.132.134&quot;}
      tell newMessage
          set visible to false
          set sender to &quot;mark@sender.com&quot;
          make new to recipient at end of to recipients with properties {address:&quot;recipient@mac.com&quot;}
          send
      end tell
  end tell
  </code></pre>
  <p>What I just noticed today is the 'sender' email set in the script, may not be the one Mail.app
  uses if its account mail box is not selected. A random one will be used if the main inbox is selected or if an individual mailbox is selected then an address from it's account will be used.</p>
  <p>I think this is because in the Mail preferences, under Composing. There is a setting to '<em>Send new messages from:'</em></p>
  <hr />
  <p><img src="https://i.stack.imgur.com/isT2p.png" alt="enter image description here" /></p>
  <hr />
  <p>You cannot select 'NO'. The only options are 'Account of selected mailbox' or one of the email addresses that are in the combo box drop down.</p>
  <p>I must admit I do not know if this was been happening before I went to Lion.</p>
  <p>Does anyone know of a fix for this, or if this is a known bug??.</p>
  <p>Thanks.</p>