From mboxrd@z Thu Jan 1 00:00:00 1970 From: johnbent@lanl.gov (John Bent) Date: Fri, 25 Jan 2008 17:35:17 -0700 Subject: [sup-talk] missing run-mailcap In-Reply-To: <1201235901-sup-7426@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> <1201220092-sup-8263@south> <1201222453-sup-1190@spooky.local> <1201235901-sup-7426@tangerine.lanl.gov> Message-ID: <1201307667-sup-2659@tangerine.lanl.gov> 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