Do you have access to the Apple Developer web site?
A search didn't tell me much but I find the side terrible useless.
Following a bunch of variable type definitions I wandered to this page:
https://developer.apple.com/documentation/foundation/nsattributedstring/1530578-rtfd
Which also
I do not know how my problems accessing the rawClipboardData were overcome,
but I succeeded in reading the array values there. So I was able to address my
original question of how to reconstruct in LiveCode a combination of text and
image copied from another program. Conclusion thus far: no
aul Dupuis
To: use-livecode@lists.runrev.com
Subject: Re: Pasting text and images together?
Message-ID: <3814cd2a-0f20-2bbb-8783-42fc57e68...@researchware.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Since my method didn't work, I'd try Marks, namely to put the keys of
the
vecode@lists.runrev.com
> Subject: Re: Pasting text and images together?
> Message-ID: <3814cd2a-0f20-2bbb-8783-42fc57e68...@researchware.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Since my method didn't work, I'd try Marks, namely to put the key
Since my method didn't work, I'd try Marks, namely to put the keys of
the clipboard array into a variable to look at
on mouseUp
lock clipboard
put the keys of the clipboarddata into tKeys1
put the keys of the fullclipboarddata into tKeys2
put the keys of the rawclipboarddata into tkeys3
Many thanks to Paul Dupuis and Mark Waddingham. The script below tries to
test their suggestions. Using 10.0.0 dp5 on an Intel Mac, and watching
execution after the breakpoint, I get errors at each "try" in the script.
So it does not seem that I can write the fullClipboardData
or
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:
lock clipboard
put the keys of the rawClipboardData
unlock clipboard
This will dump what raw data types are present - then you can fetch using
On 9/1/23 5:02 PM, Paul Dupuis via use-livecode wrote:
If the App copying the mixed content places it on the clipboard as text and an image vs some
mixed type, you may be able to do this
Your have the on pasteKey message to trap CONTROL/COMMAND-V and if you have a "Paste" menu
item, you
If the App copying the mixed content places it on the clipboard as text
and an image vs some mixed type, you may be able to do this
Your have the on pasteKey message to trap CONTROL/COMMAND-V and if you
have a "Paste" menu item, you control the script for that.
the ClipboardData, the
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"]).
As far as I know image data cannot be pasted into LC.
I just tried pasting a banal image of a cat from an Ecosia search into a
stack directly, and into an image, to no avail.
Best, Richmond.
On 30.08.23 19:35, David Epstein via use-livecode wrote:
From a web browser, or from programs like
From a web browser, or from programs like Word or (Apple) Notes, it is possible
to copy to the clipboard a single selection that includes both text and images.
Is there any way to paste all of this information to LiveCode—for example,
placing the text in fields and the imageData in image
12 matches
Mail list logo