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

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



On 04/13/2000 at 8:51 PM, kpreid@attglobal.net (Kevin Reid) wrote:

> Is there any way to access the clipboard from MacPerl without sending
> Apple Events to a scripting addition?

It can be done using an XFCN or DCMD.

In fact, there should be a copy of "Clipboard.XFCN" on the MacPerl CD-ROM.

Yup, tight along with this example of how to use it:

#!perl -w
package Dartmouth;
MacPerl::LoadExternals("Clipboard.XFCN");

#Clipboard.XFCN is located in the same folder as this script

package main;
Dartmouth::Clipboard("D'oh!");
print Dartmouth::Clipboard(), "\n";

__END__

Brian McNett, Webmaster/MacPerl Guru
*************************************************************
Mycoinfo. The world's first mycology e-journal.
http://www.mycoinfo.com/
*************************************************************



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