script execution

Hello.

Is it possible to trigger the execution of a script by clicking atom in molecule? If yes - how to do that?

Thanks,

Skaidrius.