Right-Click to Translate (Look Up) with Google Translator On 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 look like:

New Google Translator Menu in Hgh Sierra

And this is what you get when you click Google Translator:

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


If you struggle to do it yourself, or you are lazy you can download it easily here:


Related Post

PPTP VPN on MAC OS X Sierra, High Sierra and Mojav... PPTP VPN for Mac OS X Introduction PPTP VPN is no longer supported on macOS Sierra and High Sierra and that is just fine, because there are some se...
FAQ: Mac OS X Services HEIC to JPG on Right-Click Service Q: Where’d all my services go? I don’t see anything in the Services menu. A: If you don’t select anything before...
Convert HEIC to PNG on Right Click for Free Convert HEIC to PNG on Right-Click In iOS 11 Apple is replacing the PNG image format with the new HEIC alternative. But what to do when device or pr...
Right Click to Create New File on Mac OS X TL;DR; Windows has a lot of cons but it has also some pros. One of them is a smooth way to create empty file on right-click. Mac OS doesn't come with...
Free Better Battery Stats and Time Remaining for M... Better Battery Stats and Time Remaining for Mac OS TL;DR; Do you miss the time remaining indicator on your MacBook, MacBook Air, or MacBook Pro? He...
MacBook wifi issue – OS X keeps reconnecting Last few weeks I was facing annoying wifi problems. My mac was reconnecting every 5 minutes. On top of that BSSID was reseting so I saw BSSID changing...
Buy me a coffeeOut of coffee 😱, please help!