Page 1 of 1

Problem with Paste command in CS5 Panel

Posted: Wed Sep 28, 2011 10:05 am
by JuanjoClausell
Hello everybody, this is my first post, I hope I can help others with time, but now I´m stuck with this and I need help.

I´m developing a Panel for CS5 that copies a selection of an image (this include RGB or CMYK plus any alpha channel) and paste it in a new document (with the correct number of alpha channels).

I make it with a pure script and it works perfect, but when I try it with a Panel (Flash builder 4.5, PS 5.5, Flex 3.4, CSXSLibrary-2.0-sdk-3.4-public.swc), the panel throws an exception when I try to paste de data from the clipboard.

-Command "Paste into" not available.

Code: Select allgDocRef.selection.select(limits);
gDocRef.selection.copy(false);

app.activeDocument = gDocRefSeg;

gDocRefSeg.selection.selectAll();

try
{
     gDocRefSeg.paste(true);
}
catch(err)
{
    alert("Error " + err.description;);
}


Apologize my english.

Thanks in advance.

Edit: Oops! I think I fail with the right placement of this thread, Would any admin move this to the help sub-forum. Sorry.

Problem with Paste command in CS5 Panel

Posted: Sat Mar 17, 2012 2:34 pm
by Reinaldo
Hi Juanjo,
i´m taking the same problem with scripts and panel.
Did you discovery how solve this?

Thanks,
Rei.