title: Running applescript in new terminal tab and do file logging
body: <p>I need to do the following thing but I'm unable to find it in the forum. If any link exists kindly redirect me to it.</p>
  
  <p>I need to invoke an applescript from a running terminal window . How do I make sure that the applescript is running in a new tab and not in a new window. Also, I'm supposed to watch some exceptions in this new tab but is it possible to simultaneously view in terminal and log the exception details in a separate file with some time stamp?</p>
  
  <p>Thanks in advance !</p>