Skip to main content
May 16, 2009
Question

Removing "copy" from layers when they are duplicated

  • May 16, 2009
  • 6 replies
  • 2177 views

As a web designer I copy a lot of layers many many times and I always have to manually edit "copy" out of the layer name when I organize my layers. Is there any way I can duplicate the layer without appending the word "copy" to the end? I would like it just to be the same name as the layer that I duplicated. Thanks a lot.

This topic has been closed for replies.

6 replies

JJMack
Community Expert
Community Expert
December 8, 2010
December 8, 2010

In Photoshop CS5, there is an option in the Layers Panel Options called 'Add "copy" to Copied Layers and Groups.'

You can access the Layers Panel Options window by clicking on this button…

…and choosing "Panel Options…" near the bottom of the menu.

There are some other interesting options in there that might be of interest to you.

[via http://madcatphotography.wordpress.com/2010/05/27/photoshop-quick-tip-how-to-turn-off-add-copy-to-copied-layers-and-groups/]

Participant
May 19, 2009

Thanks Paul, that helped.

But I was wondering how to use this particular script, like, is there a keyboard shortcut or drop-down menu or what?

Thanks!

Paul Riggott
Inspiring
May 19, 2009

Once you have saved the script in:

PC: C:\Program Files\Adobe\Adobe Photoshop CS#\Presets\Scripts
MAC: <hard drive>/Applications/Adobe Photoshop CS#/ Presets/Scripts

You can create an action that runs it by:

Start recording a new action and select "Insert Menu Item" then File - Scripts and select the script. Stop the recording.

This action could also be assigned a function key to run the action.

Another way is to assign a keyboard shortcut to the script by;

Edit - Keyboard Shortcuts - File - go down to scripts and assign a shortcut the the required script.

Participant
May 19, 2009

Wow, thanks for the explanation.

Just one more thing (Sorry if this is annoying you): How do I record? And I can't find the script in the "File > Scripts" menu, I have to browse for it each time. Is this normal?

Thanks,

Qiming

Participant
May 19, 2009

Hmm, this is a great tool, but I'm not sure how to install these scripts, or what to do with them after I installed them, do you mind clearing it up a bit more? Sorry if I'm such a novice.

Cheers,

Qiming

Paul Riggott
Inspiring
May 19, 2009
MarkWalsh
Inspiring
May 17, 2009
Paul Riggott
Inspiring
May 16, 2009

You could try something like this...

var layerName = activeDocument.activeLayer.name;
var newLayer = activeDocument.activeLayer.duplicate ( activeDocument.activeLayer, ElementPlacement.PLACEBEFORE);
newLayer.name = layerName;