Oh. If you are trying to kill the parent process, the you can point "kill" at the environment variable $PPID. That variable gets automatically filled in with the process id of the parent process. In the case of your script, that would be the shell which has called it. And then the terminal will go away after the shell hangs up. So try it this way:
Code:
#!/bin/bash
#
# Help from "Grasshopper" :-)
#
# Convert mp4 to mp3
#
for vid in *.mp4; do ffmpeg -i "$vid" "${vid%.mp4}.mp3"; done
rm *.mp4
gxmessage -timeout 2 "Conversion from mp4 to mp3 complete !!"
kill -s HUP $PPID
HUP is the hangup signal and -s tells "kill" to send the hangup signal to the parent process id as specified by $PPID. You can read more about signals in the manual page:
man 7 signal.
But if you are running the script
./this, then you can tell it to quit "urxvt" with exit.