AS to copy current text selection

Hi folks. I’m looking for a way to copy the current text selection into the Clipboard. It’s initiated through a third party software item, so I can’t use the normal procedures. This is what I’m thinking it should look like:

tell application "BBedit" to set the clipboard with current selection

But it’s not working. I can’t recognize the highlighted focus.

Any ideas?

Cheers

First block didn’t copy the selection, but the second one worked. I wasn’t far off. Thank you.

Cheers