On 9 juin 2011, at 21:43, William Ehrich wrote: >> I'm thinking of associating files with an arbitrary extension to a >> "standard" shell script so that when the file is double-clicked it >> automatically launches the script and is used as its argument. > > The file wants to be a 'unix executable'. > > Mine are simple text files with no extension, type = creator = 0, and the > first line something like: > #!/bin/tcsh -f > Maybe starting with #! is enough. > Use chmod to set the execute bits.
What I am saying is that I want to do something like: if I double-click on a .txt file, the associated application is launched and handles the file (generally opens it). I know how to make scripts executable. So what I need to know (Arno and Steve gave me very promising pointers though) is how to launch the script _not_ by clicking on it but by clicking on an arbitrary file that I want the script to handle. Jean-Christophe Helary ---------------------------------------- fun: http://mac4translators.blogspot.com work: http://www.doublet.jp (ja/en > fr) tweets: http://twitter.com/brandelune _______________________________________________ MacOSX-talk mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/macosx-talk
