You can use the clipboard during scripting execution. Copy text to and from the clipboard. The contents of the clipboard in memory is available before and after finishing the script.
Available Routines