I want to use nautilus actions with my own script which I have usually started successfully with open-terminal and pasting the command (s. below) directly in the terminal.
for file in *.mp4; do mkdir "${file%.mp4}"; mv "${file}" ./"${file%.mp4}"; done
Using nautilus config tool now, I do not know how to insert the command in the dedicated field (see picture 1) or how to write an adequate bash script file (see picture 2). Can someone give a hint?
Picture 1: attempt to load script (below) over .gnome2/nautilus-scripts
Picture 2: attempt to write a script
mv
command over 2 lines: don't do that.