Skip to main content
rb.clipboard reads the text on the clipboard and puts new text on it. A script reaches for it to work on text the user copied, or to paste long or multi-line text: setting the clipboard and sending the paste chord is more reliable than typing. Needs: the clipboard:read permission for get and clipboard:write for set in a script that declares permissions. This script trims the whitespace around the copied text and puts the result back on the clipboard:
A denied call raises Clipboard.Get() requires 'clipboard:read' permission (or Set and write).