logo       

Re: Access the Clipboard?: msg#00046

lang.perl.macosx

Subject: Re: Access the Clipboard?

At 5:20 pm +1000 14/4/05, John Horner wrote:

More idle curiosity than a desperate need to know, but is it possible to access the OS X clipboard with perl, and if so, how?

Provided you need to get only us-ascii stuff, then

print `pbpaste`;

Otherwise

print `osascript -e 'the clipboard as unicode text'`;

or use Mac::Carbon

JD



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise