On Thu, Sep 15, 2011 at 12:32:18PM -0400, Thomas Baker wrote: > > There's a little shell script around called "appify" that wraps a shell > > script in the Mac app stuff for this, but I haven't got it working > > yet... Visit here: > > > > http://sixohthree.com/1314/shell-scripts-as-applications-in-mac-os-x > > http://git.abackstrom.com/appify.git > > > > Anyway, given that a open a Terminal and run mutt is very easy - some > > AppleScript via the oascript command to open Terminal, a shell script to > > fill in the strings.
I have investigated this and several other leads. It looks to me like: -- Firefox does not allow scripts to be associated with file types and run from Firefox, apparently for security reasons. So I see no way to click on a file:/// reference to a local MBOX file in my browser and run mutt to read and respond to the mail. -- Applescripts -- as well as the "appify" script above -- are fine for wrapping Unix commands, but AFAICT they lack any sort of mechanism for psssing the name of a file being "open"ed to the Unix command (as noted by in a comment to [1]). At this point, I would be happy simply to be able to see an MBOX file in the Mac Finder (like Windows Explorer), click on it, and have mutt launched in a Terminal window to read it. However, I still see two big hurdles: -- Creating a Mac application (.app) that will run Terminal with "mutt -f $1" as an argument, where the "open" parameter is passed to the shell command as $1. -- Have the Mac Finder allow such a Mac application to be associated with the file type MBOX such that it will be run whenever the file is clicked. I find these obstacles so frustrating that I would configure mutt on Linux and read my mail there if I knew it would solve this problem. Haven't others before me have wanted to open an MBOX file in mutt simply by clicking on it...? Tom [1] http://sixohthree.com/1314/shell-scripts-as-applications-in-mac-os-x -- Tom Baker <t...@tombaker.org>