You have two tell applications, and only 1 end tell.They have to match, or you'll get odd behavior (like what you're describing) There's actually no need for the second tell you have in the script, try putting in the commnd without the tell application wiretap pro and see if it helps.
Otherwise, put an end tell before the second tell application statement.
