View Single Post
Old 08-28-2023, 12:36 AM   #4
Kelpman
Junior Member
Kelpman began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2020
Device: none
Quote:
Originally Posted by BetterRed View Post
The clipboard data being pasted into calibre metadata must have been put there by the calibre copy metadata tool; with nothing in between such as a text editor or a clipboard extender. Why, because it's highly structured data in a format that is specific to calibre; text editors, clipboard extenders etc have editing features.
That reply set me on the right track, thanks!

I actually got it working by reproducing the XML structure of the copied metadata and changing the MIME data to 'application/calibre-book-metadata'. I was able to easily do this in Python (with PyQt6) and it should also be doable in JavaScript (Clipboard API) and other languages as well.
Kelpman is offline   Reply With Quote