The GetScrapFlavor(), and ClearCurrentScrap() functions work fine, however the PutScrapFlavor, is not putting th e text into my clipboard. The function does not return an error nor exception from my code, as far as I can tell. sample of code: import Carbon.Scrap as scrap import MacOS text = 'the test text' scrap.ClearCurrentScrap() item = scrap.GetCurrentScrap() item.PutScrapFlavor(type, 0, text) Result is: Previous text is cleard, and nothing is put in its place. I am continuing to research this, as well as try it in C, and install python2.5. Environment Python 2.4 Mac OSX 10.4.9 Intel
I'm confirming this issue on Intel / Leopard with python 2.5 (system python), 2.5 (macports) and 2.6 (macports). PPC / Tiger with python 2.3 (system python), 2.5 (macports) and 2.6 (macports) just errors out with: MacOS.Error: (-4960, 'coreFoundationUnknownErr')
Lowering the priority to low because this is a bug in a deprecated binding for a deprecated Apple framework. I won't work on a fix, although I am willing to review and apply a patch when someone provides one.