This file needs exporting from the AppleScript editor as an Application, with the option "Stay Open after run handler" checked.