Excerpts from John Bent's message of Thu Jan 24 21:40:08 -0700 2008:
> Excerpts from Grant Hollingworth's message of Thu Jan 24 17:57:50 -0700 2008:
> > * William Morgan [Thu Jan 24 19:17:17 -0500 2008]:
> > > If open is a standard OS X command, then I will add some code to
> > > auto-detect it at some point.
> >
> > It is. Unfortunately, you can tell it which application to use, but
> > not which MIME type.
>
> True, but if it has the correct extension (which it does in 0.4), you
> don't need to tell it anything.
>
> That's great that I don't need to fake run-mailcap since there's a hook.
>
The hook works (system "open \'#{filename}\'"), but sup thinks it is failing.
I get a message saying view failed, displaying as text. Maybe it should
be (! system "open \'#{filename}\'") ? Also, I added the \' because I noticed
before that sometimes filename has spaces in it and then open won't work.
John
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk