title: How to open an email message using applescript?
body: <p>I am writing a small applescript which retrieves all "unread" messages in the viewer and loops them.</p>
  
  <p>I have two goals to complete:</p>
  
  <ol>
  <li><p>I need to get the subject of each message and perform a regular expression to see if it's suitable for step 2 (ex: get emails with subject {.*})</p></li>
  <li><p>I need to open each message on a separate window and after 4 seconds, I need to close that window and proceed with the next message</p></li>
  </ol>
  
  <p>Do you know how to do these?</p>
  
  <p>Thanks in advance.</p>