I have downloaded an application from internet(from Chrome browser) named “a.app”, and there will be an alert window shown if I launch it, see the bellow figure.

The problem is, when I double click on a.app, the alert dialog will show up immediately, but if using the following AppleScript, the dialog will wait up to 20 seconds before it appears.
tell application "a.app" to launch
20 seconds go beyond my patience, so I wonder if it is possible for AppleScript to perform just as manually double click on a.app, that is, how to show up the alert dialog the moment I launch a.app by way of AppleScript.
Any ideas, thanks in advance.
Two options:
Remove the quarantine after downloading the App (like Asmus mentioned):
Permanently disable the warning by running this AppleScript line once.