There is a Groovy plugin for IntelliJ avaiable for editing and running groovy scripts from inside IntelliJ. Its currently in the groovy-intellij CVS module.