VelichkoAlexander
8/31/2016 - 12:02 PM

Copy text directly from text layer. Works above photoshop cs6. Copy following script file into /Applications/Adobe Photoshop CC 2014/Presets

Copy text directly from text layer. Works above photoshop cs6. Copy following script file into /Applications/Adobe Photoshop CC 2014/Presets/Scripts (MAC) or C:\Program Files\Adobe\Adobe Photoshop CC 2014\Presets\Scripts (WIN). Assign shortcut for easy access (cmd+option+c / ctrl+alt+c)

/*****************************************************************
 *
 * Copy Layer text 1.0 - by Praveen Vijayan! - http://www.decodize.com/
 *
 * Compatibility above Photoshop CS6
 *
 * Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/
 * 
 *****************************************************************/
 
if(app.activeDocument.activeLayer.kind ==  LayerKind.TEXT){
    const keyTextData         = app.charIDToTypeID('TxtD');
    const ktextToClipboardStr = app.stringIDToTypeID( "textToClipboard" );
    var textStrDesc = new ActionDescriptor();
    textStrDesc.putString( keyTextData, app.activeDocument.activeLayer.textItem.contents );
    executeAction( ktextToClipboardStr, textStrDesc, DialogModes.NO );
 }