For example I have an image file that I open, is there a way to attach a bash command to run when I open that file? I have ruby script that I'd like to run when this file is accessed.
Thank you.
Why: For an experiment of mine, nothing hacky in my mind :)