Re: Special Paste

2020-05-29 Thread Paul Hibbert via use-livecode
Hi Charles, Your examples are about pasting; > Both Apple's Pages and Microsoft’s Word software have key commands for > pasting text into an existing document to match the current formatting (font). But, your question is about copying; > How do you script to accomplish this when copying text t

Re: Special Paste

2020-05-28 Thread Peter Bogdanoff via use-livecode
Hi Charles, Is this what you’re looking for?: put the clipboardData["html"] into tStoredData put the fullClipboardData["text"] into tData set the clipboardData to tData paste set the clipboardData["html"] to tStoredData Peter Bogdanoff > On May 28, 2020, at 7:04 AM, Charles Szasz via use-livec

Special Paste

2020-05-28 Thread Charles Szasz via use-livecode
Both Apple's Pages and Microsoft’s Word software have key commands for pasting text into an existing document to match the current formatting (font). How do you script to accomplish this when copying text to the clipboard in a button so the user does not have to use keyboard commands? Sent from

Re: Special Paste

2016-10-25 Thread Bob Sneidar
Oh right got it backwards. Bob S > On Oct 24, 2016, at 18:41 , hh wrote: > > @Bob. > After your answer I read Charles' question again. Probably he asks > for the other way: how to match the styled text of the 'paste-target' > *in LC*? > > @Charles. If this is correct, then you could try to i

Re: Special Paste

2016-10-25 Thread hh
@Stephen. This is really a great stack. TMHO, it should become a 'standard' plugin for LC 8/9 (the 'old' clipboardData-version for LC 6/7). In the meantime, please upload it to "Sample Stacks" (livecodeshare)? > Stephen B. wrote: > I've updated my clipboard data exploring stack to include RAW cli

Re: Special Paste

2016-10-24 Thread stephen barncard
I've updated my clipboard data exploring stack to include RAW clipboard data. There's suddenly a lot of data in the clip. A good test is a Pages, Web or Word document text copied.. version 8 (legacy!) version go URL "http://fulton.barncard.com/stax/clipboardTest(8).livecode" version 9 go URL

Re: Special Paste

2016-10-24 Thread hh
@Bob. After your answer I read Charles' question again. Probably he asks for the other way: how to match the styled text of the 'paste-target' *in LC*? @Charles. If this is correct, then you could try to insert the clipboardData["text"] or use menu Edit > Paste Unformatted. This has no style and t

Re: Special Paste

2016-10-24 Thread Bob Sneidar
I believe there is the clipboardData ["html"] and clipboardData ["rtf"]. Bob S > On Oct 24, 2016, at 12:29 , Charles Szasz wrote: > > I having been trying to implement Paste and Match Style found on Pages app > and also on Word, which is called Paste Special, where the text contents of > th

Special Paste

2016-10-24 Thread Charles Szasz
I having been trying to implement Paste and Match Style found on Pages app and also on Word, which is called Paste Special, where the text contents of the clipboard are pasted into a document that matches the existing font and font style in the document. I searched the Rev and LC archives and

Re: Special Paste

2015-11-21 Thread David Bovill
As far as I can tell there is no way to access the clipboard on mobile? Using clipboardData on iOS throws an error on mobile and the dictionary says both clipboardData and fullClipboardData are not available on mobile? On 18 November 2015 at 13:26, Geoff Canyon wrote: > I'm using 6.7.3, so the f

Re: Special Paste

2015-11-18 Thread Geoff Canyon
I'm using 6.7.3, so the fundamental component works: put clipboardData["text"] into the selectedchunk On Wed, Nov 18, 2015 at 7:43 AM, Peter M. Brigham wrote: > I don't know, does it? I'm a relative troglodyte, as I work in 5.5 mostly, > but I don't see why it wouldn't work in later versions. W

Re: Special Paste

2015-11-18 Thread Peter M. Brigham
I don't know, does it? I'm a relative troglodyte, as I work in 5.5 mostly, but I don't see why it wouldn't work in later versions. With the newer additions to the language there are probably other ways to accomplish the task. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~p

Re: Special Paste

2015-11-17 Thread Charles Szasz
But I am using LC 6.1.3. Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Special Paste

2015-11-17 Thread Charles Szasz
Peter, Does this script work with LC 6.1.3? Sent from my iPad ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinf

Re: Special Paste

2015-11-17 Thread Peter M. Brigham
To expand on this, below are the handlers I have in my LC frontscript, so I can paste and match style anywhere in LC. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig -- on commandKeyDown pKey -- to paste plain text --(matching the formatting of the

Re: Special Paste

2015-11-17 Thread [-hh]
Please look also in the dictionary of newest LC 8: fullClipboardData and rawClipboardData greatly enhanced the clipboard access. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your

Re: Special Paste

2015-11-16 Thread Geoff Canyon
I think this works: put clipboardData["text"] into the selectedchunk There may be failure modes I'm unaware of. On Mon, Nov 16, 2015 at 11:25 PM, Charles Szasz wrote: > I having been trying to implement Paste and Match Style found on Pages app > and also on Word, which is called Paste Speci

Special Paste

2015-11-16 Thread Charles Szasz
I having been trying to implement Paste and Match Style found on Pages app and also on Word, which is called Paste Special, where the text contents of the clipboard are pasted into a document that matches the existing font and font style in the document. I searched the Rev and LC archives and