Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@stcgoal Run Chrome within Automator to Search selected text from anywhere on Mac OS X

@stcgoal Run Chrome within Automator to Search selected text from anywhere on Mac OS X

@result-expected Optimally, select text then press your keyboard shortcut and chrome opens


@author Guillaume Descoteaux-Isabelle

@version 0.0.1.1810171155


1.

Open Automator

Create a new service

Add a Shell

Change input AS ARG

2.

Add this to the Automator Shell

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome "https://www.google.ca/search?q=$*"

3.

Save it as : Search Text in Chrome

4. (Optionally)

Open Apple Preference / Keyboard / Shorcut

Expand and find SERVICE section

Find the service you just created

click right and set it a Shortcut like COMMAND+SHIFT+ALT+S or whatever you like
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.