I'd like to cause an arbitrary Unix command to be invoked when opening a given file in the Finder.
In other words, I'd like /path/to/arbitrary/command FILE to be invoked, where FILE is the path name of the file that I'm opening in the finder.
For example, if the file FooBar.quack lives in /Users/me/Documents, and if I want it to be fed to /usr/local/bin/bonzo, I'd like to somehow set up an association so that when I select that file in the Finder, the following command gets invoked:
Thanks in advance.
In other words, I'd like /path/to/arbitrary/command FILE to be invoked, where FILE is the path name of the file that I'm opening in the finder.
For example, if the file FooBar.quack lives in /Users/me/Documents, and if I want it to be fed to /usr/local/bin/bonzo, I'd like to somehow set up an association so that when I select that file in the Finder, the following command gets invoked:
/usr/local/bin/bonzo /Users/me/Documents/FooBar.quack
Is there a way to do this in MacOS 10.5?Thanks in advance.
.