applescript saved as application doesn't run; strange workaround
I created an AppleScript script that works perfectly, but when I Save As Application, I get the message that the application "can't be opened". Looking into the app, which is technically a folder, I noticed that foo.app/Contents/MacOS/applet only gave me read (r) access. I gave myself execute (x) access (using Terminal and the chmod Unix command), and now the app works. I shouldn't have to do that, right? What am I doing wrong?
MacBook Pro 17", macOS 10.13