I use an Apple machine to create a Script wrapper. I can make it run if I hide the directory specifically where the jar file is located. But what if I want to change the directory to where the Shell script works?
Now I have the following:
cd desktop/CommonDenom/
java -XstartOnFirstThread -jar CommonDenom.jar
I know that there is a way to target any directory from which the shell script is launched, but I cannot get anything to work. Please be specific with the instructions, as I have not used Automator for a very long time. If someone cannot specify how ot to write ethe script without Automator. Thanks in advance.
source
share