osacompile -u fails to show startup screen

When I build an applet on the command line using "osacompile -x -u -o foo.app foo.scpt". the resulting applet doesn't show the startup screen, it only shows the Quit/Run default window. If I export the same script from the AppleScript Editor, it shows the correct startup screen. Do I need to set any additional options on the osacompile command?

Replies

It doesn't look like osacompile copies any bundle resources, so you'll have to do it yourself, or use the Script Editor for the initial build.