control click variables

I want to be able to control click (Mac) and be able to select from a context menu...run file....and have it dynamically run based on the control click.

How do I get the control click absolute path of the filename? Are there different variables like directory, fullpath, extention?