I'm implementing an action that copies a link to a URL as RTF, with (e.g.) a web page title as the link text.
I'd like it to also include the text of the URL so pasting in a destination app that doesn't support RTF still preserves the URL. But when I do this, Talon adds the text as a 2nd pasteboard item, rather than an alternative data type for the first item.
Here's an example with HTML (as the syntax is a bit easier to parse than RTF).
It would be more helpful if clip.MimeData added multiple data types (e.g., plain text, HTML, RTF) to a single NSPasteboardItem as alternatives, like this:
I'm implementing an action that copies a link to a URL as RTF, with (e.g.) a web page title as the link text.
I'd like it to also include the text of the URL so pasting in a destination app that doesn't support RTF still preserves the URL. But when I do this, Talon adds the text as a 2nd pasteboard item, rather than an alternative data type for the first item.
Here's an example with HTML (as the syntax is a bit easier to parse than RTF).
This is what it looks like in Pasteboard Viewer:
And if I paste into (say) TextEdit, I get both items together:
It would be more helpful if
clip.MimeData
added multiple data types (e.g., plain text, HTML, RTF) to a single NSPasteboardItem as alternatives, like this: