on run {input, parameters} (* Your script goes here *) tell application "Terminal" reopen activate activate end tell end run