I have a bash script myscript
that loads some applescript to prompt a graphical interface to the user, to ask for his password.
If I run the bash file directly, outside of a .app bundle, it can do it without the system prompt
do you want to allow this program to access...[stuff]?
But if I put the same bash file inside a .app bundle (with the same name as the script), and double click the .app file, then it will first show the system prompt to ask for user authorisation. I have added no special entitlements to the app.
Is there a link that explains how a .app security is different for executing a script as opposed from the command line?