How to test Caja-Actions on Ubuntu MATE 14.04 and 14.10

How can I make this script work on Caja Actions?

It doesn't work in Caja-Actions but it works only if I put it in the in the.config/caja/scripts folder.