Re: Problem pasting from Livecode to Mac Mail

2018-01-13 Thread Brian Milby via use-livecode
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

Re: Problem pasting from Livecode to Mac Mail

2018-01-13 Thread Brian Milby via use-livecode
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

Re: Problem pasting from Livecode to Mac Mail

2018-01-13 Thread Mark Waddingham via use-livecode
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

Re: Problem pasting from Livecode to Mac Mail

2018-01-13 Thread Brian Milby via use-livecode
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.

Re: Problem pasting from Livecode to Mac Mail

2018-01-13 Thread Richard Burkett via use-livecode
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

Re: Problem pasting from Livecode to Mac Mail

2018-01-12 Thread Brian Milby via use-livecode
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

Re: Problem pasting from Livecode to Mac Mail

2018-01-12 Thread Bob Sneidar via use-livecode
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 >

Re: Problem pasting from Livecode to Mac Mail

2018-01-12 Thread Brian Milby via use-livecode
;" & tHTMLtext & "" > break > case "text" > set the clipboardData["text"] to pPlainText > break > end switch >end if > unlock the clipboard > end loadClipboard >

Re: Problem pasting from Livecode to Mac Mail

2018-01-12 Thread Peter Reid via use-livecode
e "text" set the clipboardData["text"] to pPlainText break end switch end if unlock the clipboard end loadClipboard Peter -- Peter Reid Loughborough, UK > On 10 Jan 2018, at 9:38am, use-livecode-requ...@lists.runrev.com wrote: > >

Re: Problem pasting from Livecode to Mac Mail

2018-01-10 Thread Paul Hibbert via use-livecode
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

Re: Problem pasting from Livecode to Mac Mail

2018-01-10 Thread Mike Bonner via use-livecode
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

Re: Problem pasting from Livecode to Mac Mail

2018-01-10 Thread Richard Burkett via use-livecode
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

Re: Problem pasting from Livecode to Mac Mail

2018-01-09 Thread Paul Hibbert via use-livecode
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

Re: Problem pasting from Livecode to Mac Mail

2018-01-09 Thread J. Landman Gay via use-livecode
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

Problem pasting from Livecode to Mac Mail

2018-01-09 Thread Richard Burkett via use-livecode
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 returns, but clearly there is just one (or a combination of CR and