Re: get contents from clipboard

2003-12-14 Thread John Delacour
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

Re: get contents from clipboard

2003-12-14 Thread Joel Rees
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

Re: get contents from clipboard

2003-12-14 Thread Steven Bach
On Dec 14, 2003, at 4:10 PM, 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

Re: get contents from clipboard

2003-12-14 Thread Doug McNutt
It used to be, back in the days of Apple Classic, that the clipboard contained several copies of the stuff that was placed there. Each copy was identified by one of those four character type codes that are now deprecated in OS neXt. pbpaste, as a tool, does not allow tor an argument for

Re: get contents from clipboard

2003-12-14 Thread Andrew M. Langmead
On Dec 14, 2003, at 9:15 PM, Doug McNutt wrote: pbpaste, as a tool, does not allow tor an argument for selecting which information type is to be selected. The pbpaste command seems to know about three types, ascii, postscript, and rtf, and by default it will try to retrieve the clipboard in

Re: get contents from clipboard

2003-12-11 Thread Robin
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

Re: get contents from clipboard

2003-11-24 Thread John Delacour
At 6:25 pm -0600 24/11/03, Jay Young wrote: Is it possible to get the contents from the clipboard with Perl? Looking in a book I see - Win32::Clipboard but is it possible to get it on the Mac in OS 10.3? If you just want the text, then either of these will do: print `osascript -e 'the