Article View: adobe.photoshop.scripting
Article #119Re: Copy/Move Layerset From One Document To Another Without Flattening
From: Paul_R
Date: Thu, 12 Mar 2009 10:48
Date: Thu, 12 Mar 2009 10:48
33 lines
1416 bytes
1416 bytes
This requires that you have the the two documents open the first document open is the one you are copying from with the layer/layers selected.
dupLayers();
function dupLayers() {
var desc15 = new ActionDescriptor();
var ref12 = new ActionReference();
ref12.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
desc15.putReference( charIDToTypeID('null'), ref12 );
var ref13 = new ActionReference();
ref13.putName( charIDToTypeID('Dcmn'), documents[1].name );
desc15.putReference( charIDToTypeID('T '), ref13 );
desc15.putInteger( charIDToTypeID('Vrsn'), 2 );
executeAction( charIDToTypeID('Dplc'), desc15, DialogModes.NO );
};
Technical Details
Message-ID:
<59b830cd.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b830cd.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,aa2629b2336b19d5 X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Paul_R@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: Copy/Move Layerset From One Document To Another Without Flattening Message-ID: <59b830cd.0@webcrossing.la2eafNXanI> Date: Thu, 12 Mar 2009 03:48:06 -0700 References: <59b830cd.-1@webcrossing.la2eafNXanI> Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit