I think I understand what is going on with the clipboard. It actually works, minus a little detail.
if you install macports py27-pygtk, you can run this little python silly script
---------- import gtk clipboard = gtk.Clipboard() print(clipboard.wait_for_targets()) ---------
you can see all the clip types (flavors) available in the clipboard.
As an example, this is what is on the clipboard, after another vector drawing program has left something in it:
print(clipboard.wait_for_targets())
('Apple PICT pasteboard type', 'com.apple.pict', 'Apple PDF pasteboard type', 'com.adobe.pdf', 'CorePasteboardFlavorType 0x41494342', 'dyn.ah62d4rv4gk8ycwndkk')
This is how it looks after it has quit:
print(clipboard.wait_for_targets())
('CorePasteboardFlavorType 0x2E534749', 'com.sgi.sgi-image', 'Apple PNG pasteboard type', 'public.png', 'image/tiff', 'public.tiff', 'CorePasteboardFlavorType 0x54504943', 'com.truevision.tga-image', 'CorePasteboardFlavorType 0x424D5020', 'com.microsoft.bmp', 'CorePasteboardFlavorType 0x47494666', 'com.compuserve.gif', 'CorePasteboardFlavorType 0x38425053', 'com.adobe.photoshop-image', 'CorePasteboardFlavorType 0x6A703220', 'public.jpeg-2000', 'CorePasteboardFlavorType 0x4A504547', 'public.jpeg', 'Apple PICT pasteboard type', 'com.apple.pict', 'Apple PDF pasteboard type', 'com.adobe.pdf', 'CorePasteboardFlavorType 0x41494342', 'dyn.ah62d4rv4gk8ycwndkk')
This is how the clipboard looks after Inkscape has copied something into the clipboard:
print(clipboard.wait_for_targets())
('image/x-plt', 'dyn.ah62d4rv4gu80w5pbq7ww88brsb0hk', 'application/x-zip', 'dyn.ah62d4rv4gu80c6durvy0g2pyrf106p52fz7gw6a', 'image/x-inkscape-svg-compressed', 'dyn.ah62d4rv4gu80w5pbq7ww88brrf1g065dqf2gnppxs3xw425trz2he3pxsrw0k', 'image/x-inkscape-svg', 'dyn.ah62d4rv4gu80w5pbq7ww88brrf1g065dqf2gnppxs3xu', 'image/png', 'dyn.ah62d4rv4gu80w5pbq7ww86dsq6', 'image/svg+xml', 'dyn.ah62d4rv4gu80w5pbq7ww8650q6z1u5pq', 'image/svg+xml-compressed', 'dyn.ah62d4rv4gu80w5pbq7ww8650q6z1u5pqfzv085pusmw1g65fqu', 'application/pdf', 'dyn.ah62d4rv4gu80c6durvy0g2pyrf106p5uqvxa', 'image/x-postscript', 'dyn.ah62d4rv4gu80w5pbq7ww88brsb11g7dxqr3gw6dy', 'image/x-e-postscript', 'dyn.ah62d4rv4gu80w5pbq7ww88brqy01a55xsv30g6xmsb4a', 'image/hpgl', 'dyn.ah62d4rv4gu80w5pbq7ww84duq70a', 'text/x-povray-script', 'dyn.ah62d4rv4gu81k3p2su11uppur75he2p3fz30g6xmsb4a', 'text/x-tex', 'dyn.ah62d4rv4gu81k3p2su11uppyqz6a', 'text/plain', 'dyn.ah62d4rv4gu81k3p2su11a5dbrf1a', 'text/xml+xaml', 'dyn.ah62d4rv4gu81k3p2su11u5pqfr6gc5pq', 'application/x-wmf', 'dyn.ah62d4rv4gu80c6durvy0g2pyrf106p52fz5043u', 'application/x-xsk1', 'dyn.ah62d4rv4gu80c6durvy0g2pyrf106p52fz6hg43v', 'image/dxf', 'dyn.ah62d4rv4gu80w5pbq7ww83d2q2', 'text/x-javafx-script', 'dyn.ah62d4rv4gu81k3p2su11uppnqf5gc3x2fz30g6xmsb4a')
and after quitting:
print(clipboard.wait_for_targets())
('image/x-plt', 'dyn.ah62d4rv4gu80w5pbq7ww88brsb0hk', 'application/x-zip', 'dyn.ah62d4rv4gu80c6durvy0g2pyrf106p52fz7gw6a', 'image/x-inkscape-svg-compressed', 'dyn.ah62d4rv4gu80w5pbq7ww88brrf1g065dqf2gnppxs3xw425trz2he3pxsrw0k', 'image/x-inkscape-svg', 'dyn.ah62d4rv4gu80w5pbq7ww88brrf1g065dqf2gnppxs3xu', 'image/png', 'dyn.ah62d4rv4gu80w5pbq7ww86dsq6', 'image/svg+xml', 'dyn.ah62d4rv4gu80w5pbq7ww8650q6z1u5pq', 'image/svg+xml-compressed', 'dyn.ah62d4rv4gu80w5pbq7ww8650q6z1u5pqfzv085pusmw1g65fqu', 'application/pdf', 'dyn.ah62d4rv4gu80c6durvy0g2pyrf106p5uqvxa', 'image/x-postscript', 'dyn.ah62d4rv4gu80w5pbq7ww88brsb11g7dxqr3gw6dy', 'image/x-e-postscript', 'dyn.ah62d4rv4gu80w5pbq7ww88brqy01a55xsv30g6xmsb4a', 'image/hpgl', 'dyn.ah62d4rv4gu80w5pbq7ww84duq70a', 'text/x-povray-script', 'dyn.ah62d4rv4gu81k3p2su11uppur75he2p3fz30g6xmsb4a', 'text/x-tex', 'dyn.ah62d4rv4gu81k3p2su11uppyqz6a', 'text/plain', 'dyn.ah62d4rv4gu81k3p2su11a5dbrf1a', 'text/xml+xaml', 'dyn.ah62d4rv4gu81k3p2su11u5pqfr6gc5pq', 'application/x-wmf', 'dyn.ah62d4rv4gu80c6durvy0g2pyrf106p52fz5043u', 'application/x-xsk1', 'dyn.ah62d4rv4gu80c6durvy0g2pyrf106p52fz6hg43v', 'image/dxf', 'dyn.ah62d4rv4gu80w5pbq7ww83d2q2', 'text/x-javafx-script', 'dyn.ah62d4rv4gu81k3p2su11uppnqf5gc3x2fz30g6xmsb4a')
Mime-types for clipboard items work for Windows, UNIX and Mac X11/XQuartz, but not for Mac non-X11 apps. I suspect that XQuartz does a on-the-fly translation of clipboard item types between the OSX clipboard and the X11 clipboard.
Inkscape/Quartz should do the same mapping:
'application/pdf' should be translated to 'com.apple.pdf' to be pastable by other apps.
Valerio
On 1/17/13 1:19 PM, Valerio Aimale wrote:
Mountain Lion:
http://rapidshare.com/files/3042368673/Inkscape-r0.48.4-r9943-10.8%2B-x86_64...
Lion:
http://rapidshare.com/files/4110359477/Inkscape-r0.48.4-r9943-10.7%2B-x86_64...
News:
- open files by double clicking on Finder icons
- open files by dragging icons on Inkscape dock icon
- Open Recent submenu fixed
- faster menubar redrawing
- stuff I've forgotten ....
Not in there yet:
- clipboard works between document windows but not with the system
clipboard
- Menu accelerators not show in menu labels
- Not importing cdr files
- Using OSX file dialogs (this is my dream) not gtk's
... other stuff that ~suv will kindly remind us of
Valerio