Copying formatted text from a field to Pages

Richmond richmondmathewson at gmail.com
Fri Apr 20 07:41:50 EDT 2012


On 04/20/2012 02:15 PM, Mark Schonewille wrote:
> Hi iPad :-)
>
> Have you made sure that the field font is not Time New Roman and have you used the syntax
>
> set char 1 to -1 of fld x to "Times New Roman"
>
> ? How do you copy? You might want to use
>
> set the clipboarddata["rtf"] to the rtfText of fld x
>
> or maybe
>
> set the clipboarddata["html"] to the htmlText of fld x

Oooo! Thanks so much; nice to be wrong sometimes.

>
> instead of using the text property of the field or even selecting the text and using the copy command (although the latter might work). Does it work if you copy manually?
>
> There might be some AppleScript commands that make Pages paste formatted text. I don't uses Pages, but if there is a menu item "Paste Formatted Text" (or similar) then you might also use GUI scripting.
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Get the extIco2Png external for LiveCode here http://qery.us/1w6
>
> On 20 apr 2012, at 13:00, Charles Szasz wrote:
>
>> I am working on an app that the user keeps open on the desktop that can take text and place it on the clipboard and paste into a word processor's document.  I set up an option menu in my app that allows the user to set the font property in a text field. I have another button that allow the user to paste the text into a document. However, when I test the app on a Mac and paste into a Pages document, I do not get the font that was selected in the button. Despite setting the font in the text field as Palatino I keep getting Times New Roman when it is pasted into the Pages document!  How can I correct this?
>>
>> Sent from my iPad
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list