OS X:如何使命令行脚本显示为帮助程序来处理mailto? [英] OS X: how to make command-line script appear as helper application to handle mailto?

查看:132
本文介绍了OS X:如何使命令行脚本显示为帮助程序来处理mailto?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



Emacs具有以下功能:



OS X上的emacs 23:mailto links&致电撰写邮件?



http://www.emacswiki.org/emacs/MailtoHandler



我将通过创建一个shell脚本,然后调用emacsclient(emacs -mailto-handler)



不幸的是,当我去Firefox,首选项,应用程序时,它不能识别shell脚本。相反,它需要一个OS X应用程序包(至少这就是我的猜测)。



因此,我可能会弄清楚如何将shell脚本转换为应用程序包,或者弄清楚如何将Firefox绑定到识别shell脚本。帮帮我?或者我应该以另一种方式思考?

解决方案

使用OS X Automator App运行shell脚本,并将Automator Project另存为App Bundle。 >

您可以像任何其他应用程序一样使用该应用程序包。


I'm trying to configure Emacs as my preferred application when the user clicks on a mailto: link.

Emacs has facilities for this:

emacs 23 on OS X: mailto links & calling compose-mail?

http://www.emacswiki.org/emacs/MailtoHandler

and I'll do it by creating a shell script that then calls emacsclient ("emacs-mailto-handler" in the previous link).

Unfortunately, when I go to Firefox, Preferences, Applications, it doesn't recognize shell scripts. Instead it wants an OS X application bundle (at least that's what I surmise).

I thus could perhaps figure out how to turn a shell script into an application bundle or figure out how to arm-wrestle Firefox into recognizing a shell script. Help? Or should I be thinking about this the other way?

解决方案

Use the OS X Automator App to run the shell script, and save the Automator Project as an App Bundle.

You can use that App Bundle as you would any other Application.

这篇关于OS X:如何使命令行脚本显示为帮助程序来处理mailto?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆