Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I am using the Terminal, I can select a URL in the text and open a context menu that lets me "Open URL". What I would like to do is customize the behavior of this "Open URL" action or add another alternative action that lets me run a custom bash script that takes the URL as an argument. Is this possible?

share|improve this question

AFAIK no, but you can make an new Service with the

And the new service will appear in the "Services" submenu in the context menu.

Assuming than you're familiar with scripting and Automator - if not, enter more details what you want achieve with the URL... (for an example can check:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.