Skip to content

Instantly share code, notes, and snippets.

@jgwill
Last active October 17, 2018 16:01
Show Gist options
  • Save jgwill/b507472bc015dc0d9c3fe851d69e2a80 to your computer and use it in GitHub Desktop.
Save jgwill/b507472bc015dc0d9c3fe851d69e2a80 to your computer and use it in GitHub Desktop.
@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