55 votes

Paste image from the clipboard into a PDF in Preview

You CAN do it. At least this is what worked for me on MacOS Catalina and Preview Version 11. Copy onto the Clipboard, the image that you want to paste on your PDF page. Go to Preview -> File -> ...
Shikhin Mehrotra's user avatar
53 votes
Accepted

When pasting in Terminal.app, `00~` is pasted at the start and `01~` at the end

Short answer: Run the command printf '\e[?2004l'. This sends an escape sequence to the terminal that tells it to stop sending bracketed paste sequences. Other options: In Terminal.app, you can also ...
Gordon Davisson's user avatar
49 votes
Accepted

Copying blocks of text in terminal

You should be able to do this by holding the option key down while doing it. This changes the cursor to a '+' sign and allows you to select any rectangular area of text. See screenshot below: If ...
Monomeeth's user avatar
  • 64.3k
38 votes

Copy and paste multiple things in macOS?

I really like Flycut. Available here: https://github.com/TermiT/Flycut Like all of the other answers here, it's a clipboard manager which stores every item you copy using ⌘ + c in a list. Then you can ...
robd's user avatar
  • 1,010
35 votes

How to copy and paste as plain text on iOS?

At least in iOS 13: Select the text Don't tap "copy" but instead "share..." Tap "copy" from the share sheet This copies without formatting. Works at least in Safari and Mail and probably many other ...
Wilhem Meignan's user avatar
27 votes
Accepted

Copy all the text of an entire `man` page from Terminal.app

You can push plain text to the clipboard by piping to pbcopy, to paste anywhere as usual. man ssh | col -b | pbcopy or equivalent man -P "col -b | pbcopy" ssh the latter of which is nicer if you ...
grg's user avatar
  • 199k
27 votes

Copying blocks of text in terminal

When using iTerm2, you can either use Cmd+Option+mouse to perform vertical/block selection, which transforms your cursor into a cross, similar to Terminal.app. Or you can use copy mode: Cmd+Shift+C ...
Konrad Rudolph's user avatar
22 votes

Best way to copy all files, ignoring errors?

I like using rsync in order to copy files from a corrupted source to a functional destination: rsync -auv --delete --ignore-errors /path/to/source/ /path/to/destination/ Where: -a = "archive mode" =...
Yuri Sucupira's user avatar
20 votes
Accepted

How to secure macOS's clipboard?

No security for data that is in one of the system clipboards is possible by design. This appears to be changing with 2020 features in publicly announced betas where Apple potentially will notify us ...
bmike's user avatar
  • 232k
19 votes
Accepted

How to automatically paste today's date with keyboard shortcut?

You could do it with Automator like this: Create new: Services Services receives no input in any application Use the search to find and add action: Run Applescript Copy and paste the following to ...
Joonas's user avatar
  • 2,618
18 votes

Download link for older Safari Technology Preview version 51

Use the Wayback Machine: https://web.archive.org/web/*/https://developer.apple.com/safari/download/ Once you find the download page of the version you'd like to download, strip Wayback Machine's URL ...
Orny's user avatar
  • 281
16 votes

How to automatically paste today's date with keyboard shortcut?

I wanted to use the system date format for consistency, rather than programming it into the shortcut. It takes about 30 seconds to set up. In Automator (Applications folder) New service Receives no ...
Andy Swift's user avatar
  • 2,148
16 votes
Accepted

Does OS X continue to copy files when my laptop goes to sleep?

There are various modes of sleep a Mac can go into. At this point your question only describes the fact your laptop screen goes to sleep, but this is different from your computer actually going to ...
Monomeeth's user avatar
  • 64.3k
16 votes
Accepted

How to do I save a file that has been put into the clipboard?

An easy way is to use the built-in Preview app. Copy the image. Open Preview. Press: ⌘+N A new window will open with your copied image. On the menu bar, click File > Save, or press ⌘+S, and a ...
Harcker's user avatar
  • 2,644
14 votes
Accepted

What command compares two directories recursively and validates that they are exact mirror images (if possible)?

The answer to this is rsync. Not just to do the copy as @nohillside suggests but it can be setup to do just a verification. Normally I would say you need to get a newer version of rsync than macOS ...
mmmmmm's user avatar
  • 29.8k
13 votes

Copy all the text of an entire `man` page from Terminal.app

If you want to read the man page in Preview, nicely formatted as a PDF, you can run man -t ssh | open -f -a Preview Or man ssh | col -b | open -f -e to open the text version in TextEdit.
nohillside's user avatar
  • 97.9k
13 votes
Accepted

Removing all characters except digits from clipboard

The shell snippet pbpaste | tr -cd "[:digit:]+" | pbcopy will take the content of the clipboard, remove all non-digits and put the result back into the clipboard.
nohillside's user avatar
  • 97.9k
12 votes
Accepted

How to use AppleScript to create a new Rich Text Format file from clipboard text?

This answer has been updated to reflect rubik's sphere's misunderstanding between what Rich Text is (what was originally asked about) and what's actually being worked with from Google Chrome, being ...
user3439894's user avatar
  • 57.8k
12 votes

How to copy and paste as plain text on iOS?

In Mail on iOS 12, I use the "Share > Copy" trick: Paste formatted Select the just pasted text and in the context menu swipe right and tap on "Share..." In the Share sheet, tap on "Copy". This copies ...
bassim's user avatar
  • 221
12 votes

Mac Terminal or iTerm: Copy the current command but exclude prompt?

Just use the command echo !! | pbcopy The double exclamation points is “last command”. It’s then piped to the pbcopy command which puts it in your clipboard. There’s no shortcut, but you can make an ...
Allan's user avatar
  • 98.7k
11 votes

Rotate Selection in Preview

Copy the selection. Open the selection in a new document. Rotate the new document. Select and copy the new document. Paste the new document into the original. Re-position.
grg's user avatar
  • 199k
11 votes

Copying blocks of text in terminal

You might also try using awk to limit the shell output to what you want. You could then even pipe it to pbcopy
Vinnie James's user avatar
11 votes
Accepted

How do you cope with tons of web fonts when copying and pasting from web pages?

Most people I know set the paste shortcut to invoke paste and match style. Here is the command to change: You can paste with style when you really want it, but for me 95% of the time I don’t want the ...
bmike's user avatar
  • 232k
11 votes
Accepted

Command + Shift + 4 not saving image to clipboard

Command + Shift + 4 saves a file to the desktop, not to the clipboard. Use Command + Control + Shift + 4 to save to the clipboard. Take a look at this comment I wrote a few years back for the full ...
Charlie74's user avatar
  • 1,466
9 votes

Text copied from Terminal with formatting in Mavericks (10.9), Yosemite (10.10), and El Capitan (10.11)

In El Capitan, you can set the formatting in Terminal app. Simply select Edit -> Copy Special and select Plain Text for no formatting or you can create a profile that looks good when pasted in a ...
Eric's user avatar
  • 91
9 votes

Is there anything like the clipboard manager Ditto for Mac?

The one I've found (Maccy) which is available free (yet if you like it, you should donate as well) and exactly like Ditto, simple and focused. For details: here is the link to it's official site: ...
Beytan Kurt's user avatar
9 votes

Command + C does not always work on first try on MacOS

I think it's possible for Apple's Continuity Universal Clipboard feature to cause something like this, depending on the quality of the signal connection with any nearby iOS devices. Perhaps try ...
Ashley's user avatar
  • 4,177
8 votes

How to force OS X Notes application to lose formatting when I paste text from clipboard?

You can select the text in Notes app, then Format -> Font -> Remove Style. Unfortunately there's no keyboard shortcut for that command :/
KarlV's user avatar
  • 81
8 votes

Is there a faster way to copy time machine files from one disk to another?

Migrating a full 3TB Time Machine encrypted drive to a new 8TB one on macOS 10.14, I ran into all sorts of issues. Trying to do a restore in Disk Utility errored out with “unable to validate source” ...
andrew's user avatar
  • 1,083
8 votes

How to prevent iTerm2 from creating overlaps and broken lines after pasting multiline chunks of text?

From docs: Pastes (both regular and slow) are done by splitting the text to paste into chunks. There is a delay between the transmission of each chunk. To change the speed that "paste" pastes at: ...
Valery Viktorovsky's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible