Name

pbpaste

Synopsis

pbpaste[-help] [-pboard ( general | find | font | ruler }] [-Prefer { 
ascii | rtf | ps }]

Prints the contents of the Clipboard to standard output. The combination of pbcopy and pbpaste may be an interesting tool to use in scripting. However, the Clipboard can be modified by other processes at any time, which limits the tool’s actual usefulness.

Options

-help

Print a usage statement to standard output.

-Prefer

Specify the output format to use if the desired format (ASCII, Rich Text Format, or PostScript) is available in the Clipboard.

-pboard

Specify the pasteboard to use: either the name used for general copying and pasting or a special-purpose pasteboard used for holding find, font, or ruler settings. Defaults to general.

Get Mac OS X Panther in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.