Created
June 23, 2010 03:39
-
-
Save bherrmann7/449458 to your computer and use it in GitHub Desktop.
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
// Move text to the clipboard | |
def clfile = 'some interesting string' | |
java.awt.datatransfer.StringSelection data = new java.awt.datatransfer.StringSelection(clfile); | |
java.awt.Toolkit.getDefaultToolkit().getSystemClipboard().setContents(data, data); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment