Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Create a simple service in Automator: "Open URL in Google Chrome"

Hi folks


I use Safari as my default browser but some URLs I receive in Mail.app must be opened in Chrome.


I'd like to make a simple service that allows me to right-click on a URL in a message and say "Open URL in Google Chrome". I'd like to do it using a shell script because it would be fractionally faster than using AppleScript.


  1. I've opened Automator, created a new Service and added one action: "Run Shell Script".
  2. Options:
    1. Service receives selected URLs
    2. Input is Entire selection
    3. Pass input as arguments
  3. Script (one simple line): "open "$1" -a /Applications/Google\ Chrome.app"


User uploaded file


The Service appears in the System Preferences shortcuts list under 'Internet' but does not show up in the Mail.app Services contextual menu. Can you spot what I might be forgetting or doing wrong?

User uploaded file


Thanks so much!


PS Posting to developer forums because I can't find an 'Automator' forum any more

Posted on Apr 25, 2017 6:23 PM

Reply
Question marked as Best reply

Posted on Apr 25, 2017 10:14 PM

Never mind, it worked after a restart.


So, you can count this as a "how-to" 😉

2 replies

Create a simple service in Automator: "Open URL in Google Chrome"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.