Copy Clipboard to text
I just found this while searching for copy Clipboard to Text :
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);
}
How might I change this to do the opposite of the code above? Couldn't find textFromClipboard or clipboardToText in search.
Thanks,
RONC
PS will new Plugin For VisualStudioCode to replace ESTK handle bringing Actions to JSX the same as now?
