Hello,
I am trying to write scripting to open up terminal if its closed or new window if its already open. For some reason currently if its closed it will open up 2 windows for terminal. But if Terminal is already open it will open a new window. Please help, this is the current script I am using. I have already tried getting rid of "activate" all that does is hide the windows. Also have tried adding "in window 1" while that works for getting rid of the second window if its closed. If its open but no windows it won't work.
set theScript to "ssh " & (theusername as string) & "@shell.3537282.com"
tell application "Terminal"
activate
do script theScript
end tell