PR submitted against develop-8.2:
https://github.com/livecode/livecode/pull/6276
Updated MCClipboard::AddText such that is will clear the clipboard and only
place the plain text representations on the clipboard. The clipboard needed
to be cleared to avoid the HTML/RTF from a previous copy being
PR just about done actually. It sets the plain text but leaves previous
HTML right now. Should have it done this weekend.
On Sat, Jan 13, 2018 at 10:50 AM Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:
> The behaviour should be that if you put plaintext then only
The behaviour should be that if you put plaintext then only plaintext should be
on the clipboard...
If you put styled text then plain and rtf should be on the clipboard... HTML
maybe - but if that's the format causing the problem (and not rtf - which I
think is the main Cocoa style interchange
The text on the clipboard is fine. The problem is that too much is put on
the clipboard. Plain text converted to HTML is likely the real problem.
That is why a trip through a plain text editor fixes the issue. It takes
the plain text from the clipboard and only puts plain text on the
clipboard.
Actually, the reason why we’re having this conversation is that I needed to
load the clipboard with in what SHOULD be plain text format data via script,
data that included plain returns, and it appeared as double spaced when pasted
into Mac Mail. There was another user-driven in terms of
That is precisely why we are having this conversation. An assumption was
made that creating an HTML version of plain text was needed for the
clipboard.
On Fri, Jan 12, 2018 at 4:51 PM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:
> Non- starter. Can't make assumptions
Non- starter. Can't make assumptions about the end user's intent. What if what
he was copying was SUPPOSED to have double line breaks or carriage returns? The
complaint would be that LC was taking liberties with user's data!
Bob S
> On Jan 12, 2018, at 09:42 , Brian Milby via use-livecode
>
So there are 2 issues with how LiveCode is handling placing text onto the
clipboard:
- converting plain text to HTML on the clipboard
- using tags for each line break when converting to HTML
I’m not sure of the reasoning behind the first issue. I understand wanting
to have the native LC format
Sorry, forgot to change Subject in previous posting...
Hi Richard
I found this problem was particularly annoying when trying to extract info from
vCards exported from Contacts on the Mac, so I developed a tiny app in LC
called vCardClipper.
I've put together a web page about this app together
This works for me with LC9.0.0(dp11) on MacOS High Sierra 10.13.2:
lock the clipBoard
put the clipboardData["text"] into tClip
set the clipBoardData to empty
-- OSX
set the rawClipboardData["public.utf8-plain-text"] \
to textEncode(tClip, "UTF-8" )
unlock the clipBoard
Does this work?
set the clipboarddata["text"] to "whatever text here"
On Wed, Jan 10, 2018 at 8:20 AM, Richard Burkett via use-livecode <
use-livecode@lists.runrev.com> wrote:
> Thanks for the suggestion, Jacqueline, but it didn’t change anything.
> Anyone else have a script-based solution to
Thanks for the suggestion, Jacqueline, but it didn’t change anything. Anyone
else have a script-based solution to make sure LiveCode pastes only plain text?
ASCII, Native, MacRoman - none of those text encodings work.
Even putting only this line in my script results in the same thing:
set the
I use a small utility called PopClip, I wouldn’t be without it (although it
does have some issues with LC on occasions), but it does allow you to choose to
paste plain text if you wish along with lots of other useful copy/paste
options. Saves me from some frustration.
It’s available on the App
On 1/9/18 12:09 PM, Richard Burkett via use-livecode wrote:
Does anyone have a solution to this problem: I set the clipboard in LiveCode to
the text of a field or variable that has returns after each line. When I paste
that into Mac Mail, the text appears double-spaced as if it has two
14 matches
Mail list logo