erikwb.net Whatever escapes

Invoke PopClip from the Keyboard

Posted in: geeky    

Image of PopClip in action

PopClip from Pilotmoon Software is a handy utility for working with text. PopClip appears when you select text with your mouse, much the same way as you see on iOS.

Now a pop up with cut, copy and paste wouldn’t be too much to be exited about, but PopClip can be customized with extensions. The selected text can be run through a plethora of services; text editing and transformation, web search, sending it to different applications, convert between html and Markdown and many more.

PopClip has quickly become one of my favorite utilities, the only problem being that it would only appear when you select text with your mouse. When writing, my hands are mostly on the keyboard, and text selections are done using the keyboard. PopClip does not appear when selecting text this way.

Fortunately, PopClip has AppleScript support, and the user guide states you can activate PopClip using:

tell application "PopClip" to appear

There are many ways to trigger this AppleScript. George Coghill shows one option using Automator and Services. I chose to use the exellent Keyboard Maestro. Create a new macro with the AppleScript action, and assign it a keyboard shortcut.

![KeyboardMaestro macro for invoking PopClip](/assets/img/20130310-km-macro-show-pop-clip.png “”)

Now whenever I select some text and press ⌃+⌥+P, PopClip appears, and I can use the arrow-keys and space/return to execute the action.