OS X: how to make command-line script appear as helper application to handle mailto?

时光毁灭记忆、已成空白 提交于 2019-12-11 03:57:37

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/4170224/os-x-how-to-make-command-line-script-appear-as-helper-application-to-handle-mai

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!