Is there a way to copy a string to the clipboard through Scala?
Similar to Python's:
from Tkinter import Tk
r = Tk()
r.withdraw()
r.clipboard_clear()
r.clipboard_append('this is my text')
r.destroy()
This question walks through how to copy a string to the clipboard in Swing, but I need something that will work with Scala as well: Copying to Clipboard in Java