Last active
July 6, 2021 16:53
-
-
Save zlovatt/1d071967c9c18b12944bc7a13f931f55 to your computer and use it in GitHub Desktop.
Extendscript: Get Clipboard Contents (Windows only)
This file contains hidden or 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
// This will get the clipboard contents directly as a string | |
var clipboardContents = system.callSystem("cmd /c \"for /f \"eol=; tokens=* delims= \" %I in ('powershell Get-Clipboard') do @set CLIPBOARD_TEXT=%I && echo %I\""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment