The documentation is minimal, I have tried to use the sample scripts in the Groovy macro and in User Macros and I cannot get anything to work. Some of these scripts are 4 years old, maybe they haven't ben updated to be compatiple with Confluence 5.1???
I really want these to work but I just don't know how they are meant to run, and there is nothing in the documentation to help.