Does the script fail with a particular error message? Gimp script is a lisp dialect, so the source is very easy to read.