I have a shell file, and I need to make an executable that will work on any Mac without chmod +x
, just by double clicking it. How can I do this? I've tried appify, but double clicking its result does not execute my file. I have also tried the solution presented in How to execute a shell script from within an app and show it in the terminal, but this results in the error Permission denied
.
The script I'm trying to make executable is:
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
SLASH="/"
INFILE=`find $DIR -name "*.csv"`
DONE=`perl myfile.pl -i $INFILE -o output.csv -l $DIR$SLASH`
echo "File(s) are ready to use"
echo "Press [enter] to escape"
read terminate