Then I tried to run the jsx from my plugin. But it is also not working.
Please guide. Its really urgent.
I have tried hard but didn't got any clue.
I am able to trace the error that script is returning when executed from plugin. It is "Error:1320 Invalid Enumeration Value".
But it is not mentioned where is it occuring. Please suggest something on this.
You are really not providing enough info for anyone to be able to help you. You have to realize that you are asking us to somehow debug your code that you are not providing in the post (a least the very few lines that trigger the plugin) which runs some third party plugin which nobody here probably has.
In general, here are 3 simple steps you have to follow to get it all working:
1. Copy the listener plugin to PS plugin folder
2. Start PS, open your image and run your third-party plugin. Make sure it succeeds
3. Close PS and open Listener.log on the Desktop. Copy&paste the function that contains the code that triggers your third party plugin into your automation plugin source.