2

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?

Community
  • 1
  • 1
jowens
  • 355
  • 3
  • 10

1 Answers1

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.

ocodo
  • 29,401
  • 18
  • 105
  • 117
  • And that worked precisely as advertised. Thanks slomojo! Right on! – jowens Nov 13 '10 at 20:27
  • @ocodo Could you please provide an Automator's screenshot? It seems that's I can't pass arguments to the shell script. – hsrv Feb 01 '19 at 14:04
  • managed to do it with AppleScript only: https://stackoverflow.com/questions/22848223/creating-an-mailto-handler-app-on-mac-osx/54484455#54484455 – hsrv Feb 01 '19 at 17:37