Look Up With Google Translator In Mac OS X

If you are not native english speaker, you may be frustrated with default “look up” options you get after selecting a text and right clicking. There are multiple dictionaries, wikipedia and news but your language is not listed. What a pitty. Fortunately there is other option. Add your own service action script! And moreover you can accomplish it with one line of code! Or if you are lazy, you can download this action script (CZ/DE/ES/IT/FR/PL/RU)  macosx-context-menu-translator.

Here are two screenshots what it’s going to look like, when you are done:

Google Translator in context menu

Fig.:1 Google Translator In Mac OS X Context Menu

Fig 2.: Google Translator Tooltip

Fig 2.: Google Translator Tooltip

All you have to do is open “Automator.app” , which is instaled on you mac by default. Then you go File -> New or with keyboard shortcut ⌘N. You should see window with options to choose a type for your document. Choose Service. Now under Library -> Utilities double click or drag  Run JavaScript. And here write your one line of code.  Just change “en/cs/” in url to language you want to have as default. My native language is Czech so I have en/cs there .

Next under Library -> Internet select or drag Website Popup. You can adjust size of the window to fit your needs. And that’s it.

Fig 3.: Automator Window With Javascript Code

Fig 3.: Automator Window With Javascript Code

 

UPDATE 1.10.2017:
In Mac OSX High Sierra the Google Translator action is located under the “Services” drop down.

New Google Translator Menu in Hgh Sierra

Fig.:1 Google Translator In Mac OS X Context Menu

Read More

Do you want to have HEIC to JPG converter in your context menu, so you can just select files and convert them to JPG or other formats? Then continue here: HEIC to JPG on Right Click.

Buy me a coffeeBuy me a coffee