comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: copying text to the system clipboard
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: copying text to the system clipboard [message #42649] Sun, 20 February 2005 13:23 Go to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
On Mon, 21 Feb 2005, Mark Hadfield wrote:
> Benjamin Hornberger wrote:
>> is it possible to copy text from an IDL variable to the system
>> clipboard? Specifically, I would like to copy a string array into
>> a multi-line text which can be pasted into Notepad or wherever.
>>
>> I found David's 'clipboard' routine, which does it for graphics
>> windows.
>
> I think your best bet is to write your string array to a temporary
> file, then open that file in your text editor with a call to
> SPAWN. From there you can copy and paste to your heart's content.

Yes on OS X. Use the pbcopy & pbpaste system utilities. You can
either open a pipe and write directly to them, or write to a tmp
file as suggested above and then spawn another command
piping/cat-ing the tmp file to pbcopy.

I would guess Linux has similar command line interface to the
clipboard. I don't know about Win.

-k.
[Message index]
 
Read Message
Read Message
Previous Topic: CLUSTER function problems
Next Topic: Weird MIN behavior

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 16:24:20 PDT 2025

Total time taken to generate the page: 0.24247 seconds