Script to copy entire box to clipboard

Hey there! Brand new to Omnigrapple, and relatively new to scripting in general. Can we use pbcopy to copy the text in an object to the clipboard, if so, what’s the correct syntax? Thanks for your help!