Scripting in AppleScript

What I want my script to do is to run a command in Terminal and close that same Terminal window when the process is complete.

Of course I could ad a delay of 6 seconds to complete the process, but it may not be enough every time.

To simplify my question, this is what I want to achieve.

  1. Quit Terminal after process completes.
  2. Quit "that" Terminal window, not all active Terminal windows.

Any help would be appreciated. :slight_smile:
Thank you