[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Toolbox] Oops (Getting/setting clipboard)



At 9.25 +0100 2000.04.14, Alan Fry wrote:
>At 8:51 pm -0400 13/04/00, Kevin Reid wrote:
>
>>In case my message did not get posted, here it is, all two lines:
>
>I didn't see it anyway...

Neither did I.


>>Is there any way to access the clipboard from MacPerl without sending
>>Apple Events to a scripting addition?
>
>Use Mac::LowMem;
>my $lmh = LMGetScraphandle;
>...
>my $cbs = $lmh->get;
>
>There are examples in MP_Write_1.3.plx.

Very cool.  I've been using the Cliboard.XFCN:

  LoadExternals('Clipboard.XFCN');
  print Clipboard();

However, MacPerl has to be the frontmost app for this to work, which is a
bummer sometimes.

-- 
Chris Nandor       |     pudge@pobox.com      |     http://pudge.net/
Andover.Net        | chris.nandor@andover.net | http://slashcode.com/

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org