title: Run self executable shell script for files in the same folder
body: <p>I would like to run a shell script from a folder it resides by double-clicking. Currently, it only works from the terminal if I cd to the folder and run bash screensVid.sh
  At the moment it spits out this error *<strong>.mp4: No such file or directory</strong></p>
  <pre><code>#!/bin/bash
  for i in *.mp4;
    do name=`echo &quot;$i&quot; | cut -d'.' -f1`
    echo &quot;$name&quot;
    ffmpeg -ss 5 -i &quot;$i&quot; -qscale:v 30 -frames:v 1 &quot;${name}.jpg&quot;
  done
  </code></pre>