From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Thu, 24 Jan 2008 16:17:17 -0800 Subject: [sup-talk] missing run-mailcap In-Reply-To: <1201218489-sup-3542@tangerine.lanl.gov> References: <1201019996-sup-8960@tangerine.lanl.gov> <1201041081-sup-6034@tangerine.lanl.gov> <1201210323-sup-6116@tangerine.lanl.gov> <1201216741-sup-4105@south> <1201218489-sup-3542@tangerine.lanl.gov> Message-ID: <1201220092-sup-8263@south> Reformatted excerpts from John Bent's message of 2008-01-24: > Yep, just like you say. Although, I think I do still need to have > something in /usr/bin/run-mailcap that parses "--action=view > application/vnd.ms-powerpoint:/tmp/foo.ppt," and then execs "open > /tmp/foo.ppt." But that's much better than having to guess an > extension from the mime-type. You don't even need to fake run-mailcap. You should just be able to have a one-line ~/.sup/hooks/mime-view.rb that looks like: system "open #{filename}" If open is a standard OS X command, then I will add some code to auto-detect it at some point. -- William