I'm trying to figure out if it's possible to program the open action (double clicking on a file) for a given file extension in OS X as:
Pass the file's absolute path to a shell script (bash or ruby or python preferably).
The only solution I'm arriving at is packaging my script as an app and setting the filetype association to always open extension .xyz in my app. Is there an easier way?