AppleScript Application test