
You can create a macOS Shortcut that takes the text currently on your clipboard and saves it to a text file in a folder you choose. This is useful for collecting quotes, notes, research snippets, error messages, or copied text without manually opening a text editor and pasting each item.
Quick Answer
Open Shortcuts, create a new shortcut, add the Get Clipboard action, add Make Text from Input, and then add Save File. Choose a destination folder, give the shortcut a name, and run it whenever you want to save the current clipboard text.
For repeated use, assign a keyboard shortcut or add the shortcut to the menu bar. The steps below use built-in macOS apps and do not require Terminal or additional software.
What This Shortcut Does
The shortcut follows a simple sequence:
- Reads the current contents of the clipboard.
- Converts the clipboard contents into text.
- Opens the save action.
- Saves the text as a file in a selected folder.
The shortcut saves a new file each time it runs if you allow macOS to ask for a filename. You can also configure it to use a fixed filename, but that may overwrite the previous file. The safer setup is to choose a filename each time or use a date-based filename.
The shortcut works best with text copied from apps such as Safari, Mail, Notes, Messages, and text editors. If the clipboard contains an image, file, or other non-text content, the result may not be useful as a plain-text document.
Create the Shortcut
1. Open Shortcuts
- Open Shortcuts from the Applications folder, Launchpad, or Spotlight.
- Select All Shortcuts in the sidebar.
- Click the + button in the toolbar to create a new shortcut.
- Click the default shortcut name at the top of the editor and enter a name such as Save Clipboard Text.
Choose a name that is easy to recognize. You will see it later if you add the shortcut to the menu bar, Finder, or a keyboard shortcut.
2. Add the Get Clipboard action
- In the action search field, type Get Clipboard.
- Drag Get Clipboard into the shortcut editor.
This action reads whatever is currently stored on the clipboard. It does not copy new content itself, so copy the text you want before running the shortcut.
3. Convert the clipboard to text
- Search for Make Text from Input.
- Drag Make Text from Input below Get Clipboard.
The conversion step helps ensure the next action receives text rather than an unsupported clipboard object. If Shortcuts automatically inserts a different text-related action, check that the action’s input comes from the previous step.
Your shortcut should now resemble this:
Get Clipboard
Make Text from Input
4. Add the Save File action
- Search for Save File.
- Drag Save File below Make Text from Input.
- Leave the input set to the text produced by the previous action.
The Save File action controls where the text is stored and whether macOS asks you to choose a filename.
5. Choose the save behavior
The available options can vary slightly depending on your macOS version and the action’s expanded settings. Configure the action using the options shown in your shortcut editor.
For a beginner-friendly setup:
- Enable the option that asks where to save the file, if it is available.
- Choose a default folder, such as Documents or a dedicated folder named Clipboard Notes.
- Set the file format to plain text if Shortcuts provides a format selector.
- Leave filename selection enabled unless you specifically want the shortcut to reuse one fixed filename.
A setup that asks for the location or filename each time is less likely to overwrite an existing note.
Warning: If you configure the shortcut to save to one fixed filename, running it again may replace the earlier file. Use a unique filename or enable the save dialog if you need to preserve every clipboard entry.
6. Test the shortcut
- Open any app containing text.
- Select a short passage.
- Press Command-C to copy it.
- Return to Shortcuts.
- Click the Play button on the shortcut.
- If prompted, choose a filename and destination.
- Open the saved file to confirm that the text appears correctly.
If the shortcut saves the text as expected, it is ready for regular use.
Make the Shortcut Easier to Run
Opening Shortcuts every time is unnecessary. You can run the shortcut from a keyboard shortcut, the menu bar, Finder, or another location supported by Shortcuts.
Assign a keyboard shortcut
- In Shortcuts, locate Save Clipboard Text.
- Control-click the shortcut, or click its Details button.
- Choose Add Keyboard Shortcut if that option is available.
- Press the key combination you want to use.
- Close the shortcut details.
Choose a combination that you do not already use in another app. A shortcut such as Control-Option-Command-S is less likely to conflict with common copy, paste, save, and search commands.
To use it, copy text and press the assigned key combination. Shortcuts then runs the actions and opens the save prompt if your configuration requires one.
Add the shortcut to the menu bar
- Open the shortcut’s details.
- Enable Pin in Menu Bar or the equivalent menu-bar option.
- Close the details panel.
The shortcut will be available from the Shortcuts menu in the menu bar. This is useful if you prefer clicking instead of remembering a key combination.
Add the shortcut to Finder
If the shortcut’s details include a Finder quick-action option, enable it. This can make the shortcut available from Finder’s contextual menu. However, a Finder action may receive a selected file or folder as input, so test it before relying on it for clipboard text. The shortcut must still use Get Clipboard as its source if the goal is to save clipboard contents.
Use a Dedicated Clipboard Folder
A separate folder makes saved snippets easier to find and prevents them from mixing with ordinary documents.
- Open Finder.
- Open Documents, or another location where you keep personal files.
- Choose File > New Folder.
- Name the folder Clipboard Notes.
- Return to the Save File action in Shortcuts.
- Select the new folder as the default destination, if the action provides that option.
You can organize files by subject, project, or date. For example, you might create separate folders for research, work notes, and troubleshooting records.
Prevent Accidental Overwrites
A shortcut that always saves to the same filename is convenient but risky. Consider one of these safer approaches.
Ask for a filename
Use the save dialog option that prompts for a filename each time. This takes an extra step but gives you control over every saved entry.
Use a date and time in the filename
You can add a Current Date action and format the date before the Save File action. A typical sequence is:
Get Clipboard
Make Text from Input
Current Date
Format Date
Save File
The exact arrangement depends on how your version of Shortcuts handles filename variables. The formatted date can be used to create names such as:
2025-03-08 14-30.txt
If you use a date-only filename, multiple runs on the same day may still have the same name. Include the time when each clipboard entry needs a unique file.
Save everything into one running file
You can append new text to an existing file, but this requires additional actions such as reading the existing file, combining it with the new clipboard text, and saving the result. This approach is useful for a running journal but is more vulnerable to formatting problems and accidental replacement. Make a backup before experimenting with an existing file.
Warning: Do not test an append or replace setup with an important document. Use a new test file first so an incorrect action cannot damage your notes.
Add a Separator Between Saved Entries
If you build a running clipboard log, add a line break or divider between entries. A typical separator might look like this:
--------------------
You can use a Text action containing the separator, then combine the clipboard text and separator with a Combine Text action. The exact action order depends on whether you want the separator before or after each entry.
For separate files, a separator is usually unnecessary because each file contains only one clipboard entry.
Troubleshooting
The shortcut saves an empty file
First, confirm that the clipboard actually contains text:
- Copy text with Command-C.
- Paste it into TextEdit or Notes.
- Run the shortcut again.
Some apps do not place usable text on the clipboard, even when selected content appears highlighted. If you copied an image, PDF object, file, or formatted element, the shortcut may not produce ordinary text.
Also check that Get Clipboard is the first action and that Make Text from Input receives its output.
The shortcut saves an image or unexpected content
The clipboard can hold multiple data types. If the most recent copy operation involved an image or file, Get Clipboard may pass that content to the next action.
Copy plain text from a text field or document, then run the shortcut. If you regularly need text from images, use an appropriate text-recognition workflow first. You can also review how to copy text from Photos and images on a Mac.
The save dialog appears every time
That behavior is normal when the shortcut is configured to ask for a destination or filename. It protects existing files and lets you choose where each entry goes.
If you always want the same folder, set a default destination in Save File. Keep filename prompting enabled if you want separate files. If you disable both prompts, verify that the resulting filename will not overwrite previous entries.
A previous file was replaced
The shortcut probably used a fixed filename. Edit Save File and enable the option to ask for a filename, or add a date-and-time naming step.
If the file was stored in iCloud Drive or another synchronized folder, check the folder’s file history or recovery options before making more changes. Do not continue testing with the same filename until the shortcut is corrected.
The keyboard shortcut does nothing
Check the following:
- Confirm that the shortcut is saved in All Shortcuts.
- Try running it with the Play button in Shortcuts.
- Check whether another app already uses the same key combination.
- Assign a different combination in the shortcut’s details.
- Copy new text before testing again.
If it works from Shortcuts but not from the keyboard, the problem is probably the keyboard shortcut assignment rather than the actions.
The saved text has formatting problems
Plain-text files do not preserve most fonts, colors, links, tables, or other rich formatting. This is expected. If you need formatting, save the clipboard content in a format that supports it, such as rich text, when available in the Save File action. For simple notes, plain text is usually easier to search and use across apps.
You want to review earlier clipboard entries
The standard clipboard normally contains the most recent copied item. If you need to find older copied content, a clipboard-history feature or dedicated clipboard manager may be more appropriate. You can also read how to use Clipboard History on a Mac for another way to work with previously copied items.
Frequently Asked Questions
Can this shortcut save clipboard text automatically after every copy?
Not with the basic setup. The shortcut runs only when you start it. Automatically responding to every copy operation requires a separate automation or third-party clipboard utility, and it can create many files quickly.
Where should the files be saved?
Documents is a reasonable default. A dedicated folder such as Documents/Clipboard Notes makes the files easier to locate and back up. Avoid saving into system folders or application packages.
Can I save the clipboard as a PDF?
The shortcut described here saves text to a file. Creating a PDF requires additional actions that format the text and generate a PDF, and the result may not preserve the original copied layout.
Does the shortcut clear the clipboard?
No. Get Clipboard reads the current clipboard contents. It does not intentionally remove them. You can normally paste the same text after the shortcut finishes.
Can I use this with text copied from Safari?
Yes. Select text on a webpage, press Command-C, and run the shortcut. Webpage formatting may be removed when the content is converted to plain text.
Can I save multiple clipboard entries into one file?
Yes, but you need additional actions to read the existing file, add the new text, and save the combined result. Test the workflow with a disposable file first to avoid replacing important content.
Final Thoughts
A Shortcuts workflow with Get Clipboard, Make Text from Input, and Save File provides a straightforward way to turn copied text into reusable Mac files. Start with a dedicated folder and filename prompts, then add a keyboard shortcut or menu-bar access once the workflow works reliably. For the safest setup, avoid fixed filenames unless you deliberately want each run to replace the previous file.