Blog

Maccy + Shortcuts: How to Automate Your Mac Clipboard

By NexlinsBPO · October 21, 2026

Maccy + Shortcuts: How to Automate Your Mac Clipboard

By · Published 2026-10-22 · About 9 min read

You copy a link from a newsletter and it’s 240 characters long, mostly utm_ tracking parameters. You paste it into a message, wince, delete half of it by hand, and do the same thing tomorrow.

That small repeated annoyance is what Shortcuts is for. Maccy is the other half: it remembers the clipboard so you can recover the original if your automation gets it wrong. This guide covers how the two fit together, five recipes, and the things that don’t work.

How do Maccy and Shortcuts actually work together?

Shortcuts has no idea Maccy App exists, and Maccy Mac doesn’t call Shortcuts. They are connected by the system pasteboard:

  1. Maccy watches the pasteboard and stores new entries in its history.
  2. A shortcut reads the pasteboard, transforms the content, and writes it back.
  3. Maccy sees the new pasteboard content and stores it as another entry. Your original stays in history too.

That last point is the useful part. Your automation is non-destructive, so the raw copy is still one hotkey away. Maccy Clipboard‘s default shortcut to open history is ⇧⌘C, and you can change it in Maccy → Settings → General .

What works and what doesn’t

You want to… Possible? How
Transform the current clipboard with a shortcut Yes Get Clipboard → actions → Copy to Clipboard
Have Maccy keep the transformed result Yes, automatically Maccy records any new pasteboard content
Trigger a shortcut from inside Maccy’s menu No Trigger it from a keyboard shortcut, menu bar, Spotlight or Siri
Read Maccy’s history from a shortcut Not natively No documented Shortcuts action or URL scheme
Search or paste a specific history item from a shortcut No Use Maccy’s own search and shortcuts instead

If you see a tutorial claiming a “Maccy action” in Shortcuts, check the date and the app version. As far as I can confirm, there isn’t one. Treat anything that depends on one as unverified.

Recipe 1: Paste as plain text, every time

Rich text carries fonts and colors you didn’t want. Build this shortcut:

  1. Get Clipboard
  2. Get Text from Input (this drops the formatting)
  3. Copy to Clipboard

Name it “Plain Clipboard”, then open the shortcut’s details (the ⓘ button in the editor toolbar) and assign a keyboard shortcut. Copy, press your key combo, paste. Maccy will show both the rich and plain versions in history.

Maccy also has its own paste-without-formatting behavior in its settings, which may be all you need . The shortcut route is worth it when you want to chain further steps, such as trimming whitespace, onto the same keypress.

Recipe 2: Strip tracking parameters from copied URLs

This is the recipe most people actually keep.

  1. Get Clipboard
  2. Replace Text, with Regular Expression enabled:
    • Find: (?<=[?&])(utm_[a-z_]+|fbclid|gclid)=[^&#]*&?
    • Replace with: (leave empty)
  3. Replace Text, regex on:
    • Find: [?&]$
    • Replace with: (leave empty)
  4. Copy to Clipboard

The first pattern removes the parameter and its trailing &, so ?utm_source=x&id=5 becomes ?id=5. The second step cleans up a dangling ? or & left at the end of the URL.

Limits: this only removes parameters you list. It won’t touch session IDs, redirect wrappers, or parameters named something unusual. Test it on a few real URLs before you trust it, and remember that Maccy still holds the original if something breaks.

Recipe 3: Clean up text copied from PDFs and terminals

Text copied from PDFs often arrives with hard line breaks mid-sentence. A shortcut can fix that:

  1. Get Clipboard
  2. Replace Text (regex): find (?<!\n)\n(?!\n), replace with a single space. This joins single line breaks and leaves blank-line paragraph breaks alone.
  3. Replace Text (regex): find [ \t]{2,}, replace with one space.
  4. Copy to Clipboard

Don’t run this on code or anything where line breaks carry meaning. Keep it as a separate shortcut with its own hotkey rather than folding it into a general-purpose one.

Recipe 4: Run a script on the clipboard

When the built-in actions run out, Shortcuts can pass the clipboard to Run Shell Script (as stdin or as an argument) or Run AppleScript. For example, a shell step like python3 -c "import sys,json; print(json.dumps(json.loads(sys.stdin.read()), indent=2))" pretty-prints copied JSON. Set the action’s input to stdin, then feed the output into Copy to Clipboard.

The Python path depends on your setup. macOS no longer guarantees a system Python, so check which python3 in Terminal first, and use the full path inside the shortcut if needed.

Recipe 5: Keep automation noise out of your history

Every “Copy to Clipboard” creates a new history entry. If a shortcut runs often, such as a clipboard-watching automation, it can bury what you meant to keep.

Maccy’s Settings → Ignore tab lets you exclude specific apps, pasteboard types, and regex patterns . There is a trade-off. If you ignore the app that performs the copy, your cleaned results won’t be saved either. Which process actually writes to the pasteboard when a shortcut runs (the Shortcuts app or a helper process) can vary, so test it: run the shortcut, open Maccy, and see whether the result appears.

A safer approach is to ignore by pattern. For example, add a regex for strings you never want kept, and leave app-level ignoring for password managers.

What should you worry about with privacy?

Clipboard automation touches sensitive data, so a few rules are worth keeping:

  • Never log the clipboard to a file by default. A shortcut that appends every copy to a text file will eventually capture a password or token.
  • Password managers usually flag their copies with the community-standard org.nspasteboard.ConcealedType marker, and Maccy is designed to respect such markers . Your own shortcuts’ “Copy to Clipboard” output won’t carry that flag.
  • Run shell scripts only from sources you trust. Shortcuts you import from the internet can execute arbitrary commands.
  • Maccy keeps history locally on your Mac, which is the point of a local-first tool. Anything your shortcuts send over the network is outside that guarantee.

Does macOS’s built-in clipboard history replace this?

Recent macOS versions added clipboard history to Spotlight . It covers basic recall. It doesn’t replace a dedicated manager if you want pinning, per-app ignore rules, regex filters, or open-source code you can inspect. It also doesn’t change how Shortcuts interacts with the pasteboard, so these recipes work either way.

Troubleshooting

Symptom Likely cause Fix
Result doesn’t appear in Maccy The copying app is on the Ignore list, or the shortcut errored Check Settings → Ignore; run the shortcut manually and watch for errors
Regex does nothing “Regular Expression” is off in Replace Text Open the action and enable it
Hotkey doesn’t fire Conflict with another app’s shortcut Pick a different combo; check System Settings → Keyboard
Shell script step fails Minimal PATH inside Shortcuts Use absolute paths to binaries
Formatting survives “plain text” The paste target re-applies styles Paste with ⌥⇧⌘V (Paste and Match Style) in that app

Where this leaves you

Shortcuts handles the transformation and Maccy handles the memory. Start with the URL cleaner, since it saves the most irritation per minute of setup, and treat anything that depends on a Maccy-specific Shortcuts action with suspicion until the app documents one.

Which repetitive copy-and-fix task would you automate first? If you’re deciding where to start, our Maccy download page has the current release and notes on what changed.

FAQ

Can Shortcuts read Maccy’s clipboard history?

Not natively, as far as I can verify. Shortcuts can read the current clipboard only, and Maccy doesn’t document a Shortcuts action or URL scheme for its history .

Does Maccy have a Shortcuts action?

No official action that I can confirm. The integration works through the shared macOS pasteboard instead.

How do I paste plain text with a shortcut?

Chain Get Clipboard, Get Text from Input, and Copy to Clipboard, then assign a keyboard shortcut in the shortcut’s details.

Will Maccy save text my shortcut copies?

Yes, unless the app writing to the pasteboard is on Maccy’s Ignore list or the content matches an ignore rule.

Is it safe to run clipboard shortcuts with shell scripts?

It’s safe when you wrote the script or fully read it. Avoid logging clipboard contents to disk, because copied data often includes secrets.


READY TO SCALE YOUR TEAM?

Need help reducing customer support or sales costs?

Nexlinks builds dedicated offshore contact center teams, sales SDRs, and compliance-first telecom campaigns from Lahore at 70% lower operational burn.

Schedule 15-Min Discovery Call → Chat on WhatsApp