Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Perl on OSX > Re: Proposed Ma...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 21 Topic 1034 of 1075
Post > Topic >>

Re: Proposed Mac::Pasteboard

by harryfmudd@[EMAIL PROTECTED] Jan 26, 2008 at 08:05 PM

On Jan 26, 12:45 am, dougl...@[EMAIL PROTECTED]
 (Doug McNutt) wrote:
> At 03:15 +0000 1/21/08, harryfm...@[EMAIL PROTECTED]
 wrote:
>
> >Is there a module that will let one manipulate a Mac OS X pasteboard?
There  does not seem to be anything on CPAN that strikes me as being for
that purpose.
>
> Have a look at the tools pbcopy and pbpaste that are delivered with OS
neXt.

I don't have NeXt (however it's capitalized), but tools with the same
names ****p with Mac OS X. The OS X version is limited to one flavor of
data ('com.apple.traditional-mac-plain-text') and four pasteboards --
the system clipboard, the "find" pasteboard, the "ruler" pasteboard,
and the "font" pasteboard. The manual is at
http://developer.apple.com/do***entation/Darwin/Reference/ManPages/man1/pbcopy.1.html

I did not intend to be so limited, though the only non-text test I
have done is to copy a JPEG to the system clipboard with Graphic
Converter, send it back to a file with my software (it turned out to
be a PICT on the clipboard), open the file, and look to see that I got
the same picture back.

> There is a subtle difference between pasteboard and clipboard. NeXt has
a pasteboard which sometimes refers to the current selection and not just
to something that has been "copied". That allows services to do things
like "execute selected text as a terminal command".

That's my understanding of the Mac OS X pasteboard. I do not intend to
sup****t promised data in the first release, and I may never fully
sup****t writing services (which appear to require a full-blown Mac OS
X application bundle with embedded Info.plist file) in Perl. Right now
the development plan (well, aspiration anyway) is:

1) Basic functionality
2) Promised data
3) Destination URLs
4) Hooks for translation services

Number 4 is intended to mean "If you can get the Perl code into a Mac
OS X application bundle (and I think X Code allows this, though I have
never done anything with it), I will try to supply the code to acquire
the data." I think I understand number 2, but the others are really
fuzzy to me now, and may never happen.

Tom Wyant
 




 21 Posts in Topic:
Proposed Mac::Pasteboard
harryfmudd@[EMAIL PROTECT  2008-01-21 03:15:23 
Re: Proposed Mac::Pasteboard
claes@[EMAIL PROTECTED]   2008-01-21 15:04:21 
Re: Proposed Mac::Pasteboard
brian.d.foy@[EMAIL PROTEC  2008-01-22 01:31:33 
Re: Proposed Mac::Pasteboard
douglist@[EMAIL PROTECTED  2008-01-25 22:45:31 
Re: Proposed Mac::Pasteboard
harryfmudd@[EMAIL PROTECT  2008-01-26 18:06:16 
Re: Proposed Mac::Pasteboard
harryfmudd@[EMAIL PROTECT  2008-01-26 19:46:30 
Re: Proposed Mac::Pasteboard
harryfmudd@[EMAIL PROTECT  2008-01-26 20:05:29 
Re: Proposed Mac::Pasteboard
chas.owens@[EMAIL PROTECT  2008-01-27 10:49:58 
Re: Proposed Mac::Pasteboard
harryfmudd@[EMAIL PROTECT  2008-01-27 10:53:31 
Re: Proposed Mac::Pasteboard
bva@[EMAIL PROTECTED] (B  2008-01-27 18:11:07 
Re: Proposed Mac::Pasteboard
brian.d.foy@[EMAIL PROTEC  2008-01-28 08:32:03 
Re: Proposed Mac::Pasteboard
harryfmudd@[EMAIL PROTECT  2008-01-27 19:03:54 
Re: Proposed Mac::Pasteboard
harryfmudd@[EMAIL PROTECT  2008-01-28 10:45:56 
Re: Proposed Mac::Pasteboard
david@[EMAIL PROTECTED]   2008-01-29 15:49:48 
Re: Proposed Mac::Pasteboard
chas.owens@[EMAIL PROTECT  2008-01-28 20:32:32 
Re: Proposed Mac::Pasteboard
harryfmudd@[EMAIL PROTECT  2008-01-30 10:01:04 
Re: Proposed Mac::Pasteboard
harryfmudd@[EMAIL PROTECT  2008-01-31 18:55:33 
Re: Proposed Mac::Pasteboard
harryfmudd@[EMAIL PROTECT  2008-02-05 09:38:05 
Re: Proposed Mac::Pasteboard
harryfmudd@[EMAIL PROTECT  2008-02-05 19:10:47 
Re: Proposed Mac::Pasteboard
harryfmudd@[EMAIL PROTECT  2008-02-14 09:19:41 
Re: Proposed Mac::Pasteboard
harryfmudd@[EMAIL PROTECT  2008-02-18 07:53:43 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 22:25:29 CDT 2008.