Created
July 6, 2021 16:53
-
-
Save zlovatt/1db0fdbebc6b9e0d1ce802c1c68a44f8 to your computer and use it in GitHub Desktop.
Extendscript: Copy string to Windows clipboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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