Fixed AppleScript problem

Terminal now frontmost window