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.
Quit Terminal after process completes.
Quit "that" Terminal window, not all active Terminal windows.
Thank you
(I didn't exactly knew where to put this topic, so I placed it in here, on second thought it would have been better to put it into "Shell Programming and Scripting" Which I did and got locked. Excuse me for this)
It seems to run that "tell" stuff asynchronously, and I was trying to work out how to not do that, so until I do, or someone else chips in with a better solution, I'm a student just like yourself