Skip to main content
Flowgun
Inspiring
August 23, 2025
Answered

copy merged document to clipboard without making selection first

  • August 23, 2025
  • 1 reply
  • 540 views

Hello folks,
Is it possible to copy-merge to clipboard without selecting the whole document first? better yet, is it possible to do that for the whole document even if we have a selection (ignoring it)? 
currently I have a function that selects the whole document, copy-merges, then deselects again. but for advanced functionalities, I want to keep my current selection and copy-merge to clipboard, without having to first save my selection, select the whole document, then copy-merge before reloading my selection.

Correct answer Stephen Marsh

I fail to see the problem, the described steps could be included in the Script you are already using. 

Edit: … or store the Selction as QuickMask Mode temporarily. 


quote

I fail to see the problem, the described steps could be included in the Script you are already using. 

Edit: … or store the Selction as QuickMask Mode temporarily. 


By @c.pfaffenbichler

 

QM mode would appear to be workable, as long as the RGB channel is selected afterwards, and not the default Quick Mask channel.

 

EDIT: For clarity...

 

With a layered file and a selection active -

 

1) Enter QM mode

2) Select the composite RGB channel

3) Select all

4) Copy merged

5) Exit QM mode (to return the original selection)

 

1 reply

D Fosse
Community Expert
Community Expert
August 23, 2025

Not sure what you mean, Merge Visible retains the selection.

 

You could also try shift+ctrl+alt+E, stamp visible. It merges visible layers to a new layer on top of the stack.

 

Maybe I'm missing something?

Flowgun
FlowgunAuthor
Inspiring
August 23, 2025

I'm not looking to "merge visible" (creating a new layer from merged layers) but to "copy-merge"  (copy merged layers as a bitmap into the clipboard). I believe these are the terms officially used by photoshop. I'm also looking for a programmatic solution, hence the "Actions and scripting" flag I added.
The code I'm currently using relies on activeDocument.selection.copy(). So, if I have a selection, it would copy-merge only around the selection, and to copy-merge the entire document, I need to first save my current selection as a channel, then select all, copy-merge, and then restore my older selection and delete its channel. This seems to me like a huge overhead for the wanted task.

D Fosse
Community Expert
Community Expert
August 23, 2025

Right. I was missing something 😉

 

No, I'm not aware ony way to Copy Merged without Select All first.