Pasting text and images together?
mark at livecode.com
Sat Sep 2 05:30:03 EDT 2023
You could poke around the raw clipboard data - this is platform specific (in terms of the keys) but gives a complete reflection of the system clipboard:
put the keys of the rawClipboardData
This will dump what raw data types are present - then you can fetch using ‘the rawClipboardData[key]’.
Note that you need to lock and unlock the clipboard around ‘raw’ access.
Sent from my iPhone
> On 1 Sep 2023, at 20:33, David Epstein via use-livecode <use-livecode at lists.runrev.com> wrote:
> To clarify my original question:
> I'm not expecting the built-in paste command to handle this task; I'm
> wondering if I can script my own paste command to handle it.
> Richmond, I can write a script to "paste" an image by itself (by creating
> an image and setting its text to clipboardData["image"]).
> But is there some way I can access both the text and the image that are on
> the clipboard after I have copied a combination of those from, e.g., a web
> browser? (Pasting to Apple Notes confirms that the clipboard contains both
> text and image.)
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode