domenico.carbotta@fastwebnet.it wrote:
wouldn't it be possible to invoke pbcopy again to restore the original contents of the clipboard?
No, this is a bad idea. As much as possible, clipboard history should be left alone by commands, unless the purpose is to explicitly put something on the clipboard.