Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Duplicate Image

Explorer ,
Aug 10, 2021 Aug 10, 2021

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?

TOPICS
Actions and scripting , macOS
697
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Mentor ,
Aug 10, 2021 Aug 10, 2021

Hold shift key when click on menu item 'Duplicate'

 

use this script

 

(ad = activeDocument).duplicate(ad.name)

 

 

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2021 Aug 18, 2021

@jazz-y – I can't get the modifier key to work on the Mac?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Aug 18, 2021 Aug 18, 2021

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*

 

2021-08-18 14-02-55.JPG

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 18, 2021 Aug 18, 2021

All good. I thought that I had missed a new feature or something!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Aug 18, 2021 Aug 18, 2021
LATEST

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 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 10, 2021 Aug 10, 2021
quote

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Aug 18, 2021 Aug 18, 2021

did our advice help you? you can mark the correct answer, or provide additional information that will help solve your problem

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines