Skip to main content
Participating Frequently
April 12, 2017
Question

Copy CMYK Values

  • April 12, 2017
  • 4 replies
  • 1161 views

HI everyone.

Have you any solutions to copy CMYK values to clipboard ?

David

This topic has been closed for replies.

4 replies

przemozAuthor
Participating Frequently
April 12, 2017

For example: I need copy thise CMYK values to clipboard and next paste it, to the txt files for example.

Maybe someone knows any solution for that ? It will help me a lot. 

c.pfaffenbichler
Community Expert
Community Expert
April 12, 2017

You could use a Script:

#target photoshop

var check = app.showColorPicker();

var theColor = "cyan "+app.foregroundColor.cmyk.cyan+"\nmagenta "+app.foregroundColor.cmyk.magenta+"\nyellow "+app.foregroundColor.cmyk.yellow+"\nblack "+app.foregroundColor.cmyk.black;

copyTextToClipboard(theColor);

function copyTextToClipboard( txt ) {

const keyTextData = app.charIDToTypeID('TxtD');

const ktextToClipboardStr = app.stringIDToTypeID( "textToClipboard" );

var textStrDesc = new ActionDescriptor();

textStrDesc.putString( keyTextData, txt );

executeAction( ktextToClipboardStr, textStrDesc, DialogModes.NO );

};

przemozAuthor
Participating Frequently
April 12, 2017

Wow !!!   that is exactly what I need!  Thanks a lot....  Adobe should to include that function to the Photoshop.

Only one more please, if I may   : integers numbers .

tmyusuf74
Inspiring
April 12, 2017

c.pfaffenbichler
Community Expert
Community Expert
April 12, 2017

What exactly do you mean?

Do you want to copy the information in the form of text or as image data (in which case tmyusf74’s post should have should address the issue)?

przemozAuthor
Participating Frequently
April 12, 2017

No, there isn't answer

c.pfaffenbichler
Community Expert
Community Expert
April 12, 2017

How does this not meet your needs?

tmyusuf74
Inspiring
April 12, 2017

Yeah sure! Go to the image menu bar then mode then CMYK marge.