Skip to Content
Sindre Sorhus
Back to Shortcutie

Updated

How to Use the Selected Text in a Shortcut on Mac

By Sindre Sorhus, who makes the Shortcutie app

With Shortcutie

  1. Install Shortcutie, and open it once. It asks for Accessibility access, which it needs to read the selected text.
  2. In the Shortcuts app, click the add button to make a new shortcut, and add the “Get Selected Text” action of Shortcutie.
  3. Add the actions that use the “Selected Text” variable, like “Translate Text” or “Copy to Clipboard”.
  4. Click the details button in the sidebar, click “Add Keyboard Shortcut”, and press the keys.
  5. Select text in an app, and press the keyboard shortcut.

The action gets nothing when no text is selected, when the window with the text is not in front, when the text is in a password field, or when the app does not support Accessibility.

Get Shortcutie

Power up the Shortcuts app on Mac

$10, one-time purchase, plus tax where applicable

Requires
macOS 26 or later
Updated
September 2026
Gumroad rating
4.9/5 (27 ratings)

More about Shortcutie

Without an app

  1. In the Shortcuts app, open the shortcut, click the details button in the sidebar, and select “Services Menu”.
  2. In the actions, use the “Shortcut Input” variable for the selected text.
  3. Select text in an app, choose the menu with the name of the app, choose “Services”, and choose the shortcut.

To run the service with a keyboard shortcut, open “System Settings › Keyboard”, click “Keyboard Shortcuts…”, click “Services”, and give the shortcut a keyboard shortcut. Apple

This is free, and it is enough for most shortcuts. But a shortcut that you run from the Dock or the menu bar gets no text from the app.