Error on simple script to open new tab

Solution 1:

Try this:

tell application "Terminal"
    if not (exists window 1) then
        reopen
    else
        do script ""
    end if
end tell