Maccy + Shortcuts: A Clipboard Workflow That Actually Saves Time

Maccy + Shortcuts: A Clipboard Workflow That Actually Saves Time

Maccy and the macOS Shortcuts app work well together, but not through a direct integration. Maccy app keeps your clipboard history, and Shortcuts transforms whatever is on the clipboard, such as cleaning text, stripping tracking parameters, or building Markdown links. Each result lands back in Maccy mac as a new history item, so you keep both the original and the transformed version.

Quick answer

  • The pattern: copy → run a Shortcut (via keyboard shortcut) → Maccy records the result → paste from history.
  • Why it works: Shortcuts’ Get Clipboard and Copy to Clipboard actions read and write the system pasteboard, and Maccy watches that pasteboard.
  • Limit to know: as far as I know, Maccy exposes no Shortcuts actions of its own, so Shortcuts can only see the current clipboard item, not your history.

Why combine a clipboard manager with Shortcuts at all?

They solve opposite halves of the same problem. A clipboard manager answers “where did that thing I copied go?” Shortcuts answers “I always fix this text the same way after copying it.” Alone, each is useful. Together, you stop doing the same manual cleanup (retyping, find-and-replace, stripping formatting) a dozen times a day.

The glue is the system pasteboard. Maccy clipboard polls it for changes and stores each new item. Shortcuts reads from and writes to the same pasteboard. So the moment a Shortcut finishes with Copy to Clipboard, Maccy sees a fresh copy event and files it in history. No plugin and no API are involved.

What you need before starting

RequirementDetail
MaccyInstalled and running in the menu bar. Free and open source.
Shortcuts appBuilt into modern macOS. Shortcuts can be given keyboard shortcuts from the shortcut’s details panel.
Auto-paste settingCheck Maccy → Settings → General. If “Paste automatically” is on, choosing an item from history pastes it immediately (this needs Accessibility permission). If you want to copy an old item and then run a Shortcut on it, turn this off first.
Hotkey conflictsMaccy’s default opening hotkey is ⇧⌘C. Avoid assigning that to a Shortcut.

The core loop: a three-step habit

  1. Copy normally with ⌘C. Maccy records it.
  2. Trigger a Shortcut with its own keyboard shortcut. It reads the clipboard, transforms it, and writes the result back.
  3. Paste with ⌘V, or open Maccy to choose between the original and the transformed version.

The last step matters more than it looks. Because Maccy keeps the original, a Shortcut that goes wrong costs you nothing. You open Maccy and the untouched text is one row down.

How to assign a keyboard shortcut to a Shortcut

In the Shortcuts app, open the shortcut, click the info (ⓘ) button in the editor’s toolbar, and add a keyboard shortcut under the shortcut’s details. Pick something with ⌃⌥ or ⌃⌥⌘ modifiers, which rarely collide with app shortcuts. Many people also pin their shortcuts to the menu bar from the same panel.

Four Shortcuts worth building

1. Clean plain text (trim, collapse whitespace)

Text copied from PDFs, emails, and chat apps often arrives with stray line breaks and trailing spaces.

  1. Get Clipboard
  2. Replace Text: find [ \t]+, replace with a single space, with Regular Expression enabled
  3. Replace Text: find \s+$ (or ^\s+|\s+$), replace with nothing
  4. Copy to Clipboard

Note that Get Clipboard can return rich text. If you want guaranteed plain text, add a Get Text from Input action after it.

2. Strip tracking parameters from a copied URL

Links often carry utm_*, fbclid, or gclid parameters you don’t want to share. A single regex replace leaves a stray & when the first parameter is removed, so a short shell script is more reliable:

  1. Get Clipboard
  2. Run Shell Script with input passed to stdin:
    cat | sed -E 's/[?&](utm_[a-z_]+|fbclid|gclid)=[^&#]*//g; s/^([^?]*)&/\1?/'
  3. Copy to Clipboard

The first expression deletes the unwanted parameters. The second repairs the case where the first remaining parameter now starts with & instead of ?. This uses macOS’s BSD sed, which is why it uses -E rather than GNU-style flags. Test it on a URL with a fragment (#section) before trusting it.

3. Turn a copied URL into a Markdown link

  1. Get Clipboard
  2. Get URLs from Input
  3. Get Contents of URL (GET), then Get Text from Input or a regex match on <title>(.*?)</title> to extract the page title
  4. Text: [Title](URL) using the variables from the previous steps
  5. Copy to Clipboard

This makes a network request, so expect a short delay, and sites that block automated fetches will return nothing useful. Add an If fallback that copies the bare URL when the title comes back empty.

4. Change case in one keystroke

Use Get Clipboard → Change Case → Copy to Clipboard. It’s tiny and unremarkable, and it’s probably the one you’ll use most. Make separate shortcuts for UPPERCASE, lowercase, and Capitalize Every Word rather than a menu, because a menu adds a click to every use.

Using Maccy as the source of truth

This is where the pairing gets slightly awkward, and it’s worth being direct about it. Shortcuts’ Get Clipboard sees only what is on the pasteboard right now. It cannot browse Maccy’s history. To run a Shortcut on an older item:

  1. Open Maccy with ⇧⌘C and search for the item by typing.
  2. Select it so it becomes the current clipboard item. With auto-paste off, this copies it without pasting.
  3. Trigger your Shortcut.

It’s one extra step, and it’s the price of two independent tools. If you do this constantly, a simpler fix is to build the habit of running the Shortcut right after you copy.

Which approach for which job?

TaskBest toolWhy
Recall something copied an hour agoMaccy aloneSearch-as-you-type over history is faster than any workflow.
Keep a snippet you paste dailyMaccy pinsPinned items stay at the top; pin the selected item with ⌥P.
Same cleanup after every copyShortcut on a keyboard shortcutRepeatable and one keystroke.
One-off odd transformationDo it by handBuilding a Shortcut costs more than the task.
Transform that needs history accessSelect in Maccy, then run ShortcutNo direct bridge between them.

Privacy: what your workflow leaves behind

Every transformed result becomes a history item, and history is stored locally on your Mac. That is a feature, but think about what flows through your Shortcuts. If a Shortcut touches anything sensitive, such as tokens, passwords, or personal data, the output lands in your clipboard history too.

  • In Maccy → Settings → Ignore, add apps whose copies should never be recorded, such as password managers.
  • Password managers usually mark their copies as concealed so clipboard tools skip them. Whether Maccy honors this in your version is worth confirming.
  • Clear history from the Maccy menu if you’ve been testing a Shortcut against real credentials.

Troubleshooting

The Shortcut runs but nothing new appears in Maccy.
Confirm the Shortcut ends with Copy to Clipboard. Also check whether the output is identical to what was already on the clipboard. An unchanged value may not register as a new copy.
My keyboard shortcut does nothing.
Check for a conflict with another app or with Maccy’s own hotkey, and make sure Shortcuts has the permissions it prompts for.
Pasted text still has formatting.
Add Get Text from Input before copying, or paste with your app’s “Paste and Match Style” command.
The shell script returns empty output.
Confirm input is set to stdin, not an argument, when you use cat.

The verdict

Maccy handles memory and Shortcuts handles transformation, and the clipboard is the only interface between them. That’s a limitation and also why it’s robust: nothing to break on update, nothing to configure. Start with the case-change and clean-text Shortcuts, give each a keyboard shortcut, and add more only when you catch yourself repeating a fix.

Maccy is free and open source, so you can try the whole workflow at maccy.app without committing to anything. What’s the one cleanup you perform after copying more than any other?


If you want to try it yourself, maccy.at is a free, open-source clipboard manager for macOS — the clipboard history guide covers the rest.