Updated
How to Use the Selected Text in a Shortcut on Mac
By Sindre Sorhus, who makes the Shortcutie app
With Shortcutie
- Install Shortcutie, and open it once. It asks for Accessibility access, which it needs to read the selected text.
- In the Shortcuts app, click the add button to make a new shortcut, and add the “Get Selected Text” action of Shortcutie.
- Add the actions that use the “Selected Text” variable, like “Translate Text” or “Copy to Clipboard”.
- Click the details button in the sidebar, click “Add Keyboard Shortcut”, and press the keys.
- 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
- Privacy
- No personal data collected
- License
- All your Macs
- Updated
- September 2026
- Gumroad rating
- 4.9/5 (27 ratings)
Without an app
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.
