7.0 just let me paste from a PDF!

Kay C Lan lan.kc.macmail at gmail.com
Sun Mar 22 07:11:53 EDT 2015


On Sun, Mar 22, 2015 at 5:43 AM, Dr. Hawkins <dochawk at gmail.com> wrote:

> OSX/Yosemite.
>
> I apparently selected the entire page by accident while selecting text to
> cut and paste.
>
> I ended up with the entire page as an image when pasting into livecode.
>
> But I can't replicate it.  This would be *really* useful . . .
>
> Even better would be converting it to fields, but . . .)
>

This has 'sorta' worked since RR 2.x

1) Select some text in a pdf and select Copy.

2) Go to LC and in an appropriate place* :

put the clipboardData["text'] into fld 1

* an appropriate place might be a btn that has the above script in it or it
could be in the field's script within a mouseEnter handler or whatever.

I've just checked again and it still 'sorta' works in 7.0.3 and Mavericks.

The 'sorta' is a problem with OS X not LC. Prior to Snow Leopard you could
'option select' text in a pdf and if there were columns of data they would
be pasted into LC in the same column format. This was perfect.
Unfortunately since Snow Leopard, and including every OS X / Preview /
Reader combination ever since, the 'option select' no longer works. What
happens is if there is any multi-column text it is reproduced sequentially
- just find any two column pdf, select all, Copy and Paste it into TextEdit
and you'll see the problem.

HTH



More information about the use-livecode mailing list