I have an extremely simple script that currently executes a command on a file located in the same folder:
command ./file_in_folder option output. It would be better if script asks user which file they want.
Can a simple script ask the OS's default GUI file manager to open and pass selected file back to script?
- User double click executable script
- GUI file manager pops up
- User selects
- Script executes
command <FILE> option output
If no, what is recommended way to pass
<FILE> to script that will execute
command <FILE> option output?