On 2011-06-08 19:39 , Arno Hautala wrote:
On Wed, Jun 8, 2011 at 21:22, Jean-Christophe Helary
<[email protected]> 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.
Is there a relatively trivial way to do that ?
no
You may be able to do this by wrapping your script with something like Platypus.
Or perhaps an AppleScript.
I think associating a file type (or extension) requires a bundle
identifier. I'm not sure that Platypus or an AppleScript provides
this.
i understand that Platypus can do this; AppleSripts saved as an
application bundle need some manipulation -- here's some info:
<http://www.macosxautomation.com/applescript/bundletools/index.html>
the key for this to work is that your resulting script wrapper must
successfully handle the open event and receive the file(s) you have
double-clicked, and pass those files as arguments to the shell script
_______________________________________________
MacOSX-talk mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-talk