I need to run a .command file with input at runtime, but I want to run via double click, not from terminal.
I have a file adbInstall.command
file with this code
adb install /Directory/$1.apk
From terminal, I can do adbInstall.command fileName
and it will properly run adb install /Directory/fileName.apk
How can I input fileName
whilst double clicking on adbInstall.command instead of running it from terminal?
Best Answer
Using Automator.app:
adb install /Directory/$1.apk
as the actual script.Now you'll have a clicable file which will ask for the parameter for the script.