Copy link to clipboard
Copied
I need to duplicate open an PSD. I've been using Image>Duplicate. The only issue is that I am running actions and need to modify the results a little. By default, the duplicated document is named the same, followed by a "space" and "Copy". The added space is messing up an export I need to do. I would rather not name each document manually when duplicating, so is there a way to remove the added text when duplicating an image?
Copy link to clipboard
Copied
Hold shift key when click on menu item 'Duplicate'
use this script
(ad = activeDocument).duplicate(ad.name)
Copy link to clipboard
Copied
@jazz-y – I can't get the modifier key to work on the Mac?
Copy link to clipboard
Copied
I tested how modifiers work for me before writing, but at the moment I can not get the same result. If no modifier is pressed, a window appears prompting you to enter a name, if you press alt then a duplicate is created without a dialog box with the prefix "copy". But I'm sure that at the time of writing the answer, the shift worked as well. I'm at a loss. The only assumption is that at that time I had a faulty keyboard, perhaps some of the keys were stuck and gave such a strange effect.
Rather, my message in this part does not make any sense.
UPD: I think I understand what's the matter. I use an optional POS keyboard that uses rare shortcuts to perform certain functions. One of these functions is to run a script to create a duplicate of the current image with code similar to that written above. That is, at that moment my keys were really stuck and when I pressed shift, I actually pressed ctrl + shift + alt + 6, intended for the POS keyboard
*EPIC FAIL*
Copy link to clipboard
Copied
All good. I thought that I had missed a new feature or something!
Copy link to clipboard
Copied
in fact, when I wrote the answer, it also seemed strange to me that the shift key was used as a modifier (usually it alt key), but at that time I did not attach any importance to this 🙂
Copy link to clipboard
Copied
I need to duplicate open an PSD. I've been using Image>Duplicate. The only issue is that I am running actions
By @RRowe
You mean Photoshop actions? You can call or run above script using Photoshop action as step in action.
Copy link to clipboard
Copied
did our advice help you? you can mark the correct answer, or provide additional information that will help solve your problem
Find more inspiration, events, and resources on the new Adobe Community
Explore Now