If you apply the patch attached to the following bug report and recompile the plug-in, your script should then work.
https://bugzilla.gnome.org/show_bug.cgi?id=640612 _______________________________________________ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user