Skip to content
Prev 178710 / 398506 Next

problems with clipboard

On Tue, 28 Apr 2009, Jamie.lannister wrote:

            
See the help for 'file'.  It says (on a Mac) that file("clipboard") 
reads the 'X11 primary selection', and also says

      Mac OS X users can use 'pipe("pbpaste")' and 'pipe("pbcopy", "w")'
      to read from and write to that system's clipboard.

The problem is that most windows managers on Unix-alikes have multiple 
clipboards and working out which text is in which clipboard is tricky, 
not least as some applications (and some window managers) try to be 
helpful and copy to more than one clipboard.  That's why this may 
sometimes appear to work and sometimes not.