Steve, Arno,

Thank you very much for the leads. I'll see what I can come up with.

Jean-Christophe

On 9 juin 2011, at 10:50, [email protected] wrote:

> 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

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

Reply via email to