Yes, this is possible. Script can be added to the library in the "File Management" throught the Development Toolkit (Extras -> File Management). These scripts are accessible using the "db:\\" path name in your calls. (see the XML framework on top)+
See video.
http://www.youtube.com/watch?v=ILI1FPyRMuI