-
1. Re: Photoshop CS5 bug, can not copy/cut from JS - PC only.
Peter-the-Pea Nov 11, 2011 9:07 AM (in response to Max Penson)Hi,
I'm having the same issue - Copy is failing to work when calling a script through a panel, yet it works fine in the toolkit.
What's the solution to this? The initial report of this was 12-04-09 Please dont tell me that this has not been addressed in 2.5 years???
I have tried the following:
refSel = app.activeDocument.selection.load(app.activeDocument.channels.getByName("Alpha 1"));
var idcopy = charIDToTypeID( "copy" );
executeAction( idcopy, undefined, DialogModes.NO );
var idpaste = charIDToTypeID( "past" );
executeAction( idpaste, undefined, DialogModes.NO );and:
var selected = app.activeDocument.channels.getByName("Alpha 1")
app.activeDocument.selection.load(selected)
app.activeDocument.selection.copy()
app.activeDocument.paste()Neither work, This issue is going to prevent us moving to using panels and Java scripts - forcing us to stay with actions, which is far from ideal!
Please can I get some information on this issue...
UPDATE:
This issue also causes `copy` and `paste` functionality on the computer to stop working.
I have a work around using duplicate, invert selection and clear... but this still has the issue with `copy / paste` not working...
Cheers,
Pete.

