The action does not require any arguments.
The
Clipboard.getText action returns text currently on the clipboard. If the clipboard contains data that cannot be represented as text, the action will not return anything.
If text is currently on the clipboard, the action returns a string containing the text on the clipboard. If no text is on the clipboard, the action returns undefined.
The action does not throw exceptions.
let clipboardText = CS.Clipboard.getText();
if( clipboardText === undefined ) {
clipboardText = "<There was no text on the clipboard.>";
}
clipboardText = "Clipboard text modified by CSPro at " +
new Date().toString() + ": " +
clipboardText;
CS.Clipboard.putText({
text: clipboardText
});