Parsing the content of the clipboardData["objects"] array
zryip.theslug at gmail.com
Mon Jul 19 16:27:23 CDT 2010
On Mon, Jul 19, 2010 at 11:01 PM, Mark Wieder <mwieder at ahsoftware.net> wrote:
> Monday, July 19, 2010, 1:25:34 PM, you wrote:
>> Rebuild the controls nested in the clipboard data into a group located
>> on a palette.
> I take it the "paste" command won't work for you in this scenario?
No, duplicate selected objects works perfectly to duplicate objects
directly in the group.
However for the "paste" command I have two main problems:
1) The objects are pasted in the top editable window and not in the
palette. That's a normal behavior considering that you are not able to
do same by dropping objects in an not editable stack from the tool
2) Even if I can force the paste in my palette (I have not tried to
set the palette as the default stack for example, but not sure that's
will change something due to the normal behavior), my objects will not
be created in the group, but probably somewhere in the stack.
So I think that I have to create those objects by hand at the location I need.
And to clarify things about the content of the clipboard: the objects
in the clipboard could be one or more objects copied by an user and
paste in the palette group.
-Zryip TheSlug- wish you the best! 8)
More information about the use-livecode