Standalone executable app

I have created a .scpt file in Script Debugger and it runs how I want it.
Can I make this into a standalone executable (.app?) that I can run without opening it in Script Debugger?

Just choose File -> save As and a format of Application (Apple).

When I do this, a file with the .app is created.
When I double click on this file, I get a message box

Press Run to run this script, or Quit to quit.

I click the Run button but all that happens is an icon appears in the bottom right of the task bar at the bottom of the screen. I have to right click on this icon and “Force Quit” to remove it.

Then there’s probably an issue with your script.

OK thanks,. The script runs ok inside script debugger.