title: Create a message with attachment in Outlook using applescript
body: <p>I'm trying to open a new message window in Microsoft Outloook version 15.6 and populate the fields including an attachment.  Here's my actionscript code:</p>
  
  <pre><code>tell application "Microsoft Outlook"
      set newMessage to make new outgoing message with properties {subject:"Hooray for automation"}
      make new recipient at newMessage with properties {email address:{name:"Jim Shank", address:"jim.shank@example.com"}}
  make new attachment at the end of newMessage with properties {file:"/tmp/Invoice INV2 - Paul.pdf"}
      open newMessage
  end tell
  </code></pre>
  
  <p>(This message was derived from <a href="https://stackoverflow.com/questions/9521897/create-new-outgoing-message-with-applescript-in-microsoft-outlook">this stack overflow question</a>).</p>
  
  <p>However, I get this error: 256:398: execution error: Microsoft Outlook got an error: Error while saving the changed record property. (-2700)</p>
  
  <p>Is it possible to use actionscript to open a new message in the latest version of Outlook?</p>