On 2003.12.15, at 07:10 AM, John Delacour wrote:

At 5:01 pm +0900 11/12/03, Robin wrote:
late in on this one but you can treat the clipboard as a filehandle if you pipe to pbpaste and pbcopy :

open (FROM_CLIPBOARD, "pbpaste|");
open (TO_CLIPBOARD, "|pbcopy");

you can then do as you normally would for moving data to and from fle handles. See the typically useful-in-a-real-world-situation example script below

So far as I can see there is no way to use this useful technique with a clipboard containing Unicode text, for example Chinese or Greek text copied from TextEdit. Am I right?

Why do you think it won't work? Is there some irreversible munge applied to the pipes or the clipboard? Or is it the guessing game about being sure it was Unicode text?


reiisi



Reply via email to