[Pythonmac-SIG] Accessing the clipboard

Jack Jansen Jack.Jansen@cwi.nl
Tue, 11 Feb 2003 10:58:24 +0100


On Monday, Feb 10, 2003, at 21:58 Europe/Amsterdam, Josh English wrote:

> I've been reading through the docs but I can't find any method for
> reading and writing to the Macintosh clipboard. Is this possible with
> Python 2.2 and Mac OS 9?
>
> I am looking specifically for a utility to edit the content of the
> clipboard, say, change the HTML links to lowercase or remove/add quote
> symbols and I can't find a decent utility to do this, so I figured I'd
> try to write one and make a CSM our of it.

Look at the Carbon.Scrap module.

You should note that this module is completely different under classic 
PPC and
Carbon. And I think that under 2.2 the Carbon version isn't complete 
(it is under
2.2.2).
--
Jack Jansen, <Jack.Jansen@cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma 
Goldman