On 26Apr2015 10:25, martin f krafft <[email protected]> wrote:
also sprach Cameron Simpson <[email protected]> [2015-04-26 01:10 +0200]:
So I go to the attachment view in mutt. Press <enter> on the attachment,
which runs apphelper (from mailcap).
[…]
so pressing <enter> ran apphelper which ran "xv" immediately. After quitting
"xv", I get the save prompt.

Right, this is nice. But I don't always want to run xv. Sometimes
I want to run Gimp.

Yes, but I'm running apphelper via my "ah" wrapper. It passes apphelper the -y option, which means always run the default viewer. Without that option, apphelper asks first. See the man page cited in my first message.

Entering "!open %" invokes the shell command "open" (standard Mac
"open this file/url with the default app" command) with the temp
filename replacing the "%".

This would be exactly what I need, except…

Obviously I could issue any command, not just "open", with the
filename specified by "%".

mutt 1.5.23 does not seem to know about '%'. Running
"<shell-escape>less %<return>" yields

 %: No such file or directory

What am I doing wrong?

You're saying it to mutt, not to apphelper.

My mailcap makes apphelper the handler for most file types, and supplies apphelper the default "end" viewer. Apphelper runs the viewer (asking first by default) and offers to save the file, and accepts "!shell command" at its prompts.

Basicly, apphelper is the save/view/whatever dialogue I wish all programs had:-)

Cheers,
Cameron Simpson <[email protected]>

The national budget must be balanced. The public debt must be reduced; the
arrogance of the authorities must be moderated and controlled. Payments to
foreign governments must be reduced, if the nation doesn't want to go
bankrupt. People must again learn to work, instead of living on public
assistance.     - Marcus Tullius Cicero, 55 BC

Reply via email to