I use this console command to automatically send all files in some directory to the JAR file, catch the output of that JAR file and finally create new files from the output. Here is the command
for i in `find . -type f -name '*xml'`; do java -jar "~/grabbertty.jar" $i > $i.txt; done
Now, I know how to make nautilus-script which will be called via RightClick->Scripts.
What I do not know is how to convert this command to say "convert all files in currently selected directory". Currently selected directory is a directory where I right click.
Anyone can help. Thanks.