A script fu (rounded corners) from the command line...

Hello there!
I've made a script in order to round the corners of my images with one click.
Maybe it wasn't necessary, because I could use script-fu-round-corners in the command line, but that's what I've tried, stupid or not:

a) If I open an image in gimp and run the script from inside gimp, then the image /home/alex/Desktop/1.png is created successfully and everything is fine. When I run the above command from the command line, it exits without errors but nothing happens to the image.

b) As 4th and 5th argument in gimp-file-save I've hardcored the path of the image, but I'd like to overwrite automatically the specified image, I've tried instead of hardcoring the path to put the variable 'image', but it isn't of type 'STRING', and this type of variable is needed there. No clues.

c) It feels like that this could be done without the use of the custom script-fu called 'script-fu-rounded-corners' I made. It could probably be a one-liner in gimp, where 'script-fu-round-corners' is being called.

Hi hakermania and all
I tried above example but it doesnt seem to work on my linux system.
I tried gimp -i -f -d -b --verbose '(round_the_corners "toby.jpg")' -b "(gimp-quit 0)"
and I got no of gimp errors

Your command line is wrong. The -b argument MUST have the script-command immediately after it NOT the -verbose argument (which is also wrong as it should be 2 dashes, see http://www.gimp.org/tutorials/Basic_Batch/ ).