In the Script editor, I wrote a command to load the JAR.
make shell Script "cd / Desktop / RunJar /; java -jar RunMyJar.jar"
and saved as a Script file as an application. When I click on the script file jar get run.
My requirement
I would like to get the name of the file that was dumped into the Script file, and would like to pass the name of this packed file as an argument to my bank.
I implemented this on Windows, but could not work similarly on MAC OS
In windows
I put the BAT file in the Boot JAR along with the absolute name of the file that was reset in the bat file on the windows. @ echo% * will provide me with a list of files that were deleted in the batch file.
@ echo% * @ Pause java -jar RunMyJar.jar% *
Similarly, I would like to implement in MAC OS
Thank.
source
share