Folder Action sounds like a good idea.
I would personally do it totally differently (just my 2 cents): using Quicksilver (which any Mac user should have installed), locate the jpg-file you want to open, press Tab, choose "Open With", press Tab, then select "Preview" as the app with which you...