Skip to content

Instantly share code, notes, and snippets.

@zlovatt
Created July 6, 2021 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zlovatt/1db0fdbebc6b9e0d1ce802c1c68a44f8 to your computer and use it in GitHub Desktop.
Save zlovatt/1db0fdbebc6b9e0d1ce802c1c68a44f8 to your computer and use it in GitHub Desktop.
Extendscript: Copy string to Windows clipboard
// Copy string from ESTK to Windows clipboard:
var myString = "Here is a string";
var cmdString = 'cmd.exe /c cmd.exe /c "echo ' + myString + ' | clip"';
system.callSystem(cmdString);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment