- tell application "Safari"
set output to the selection as string
but that doesn't do it ("Can't make selection into type string.") Google is not helping me, nor is the AppleScript language guide.
Failing that, how do I copy that selected text to the Clipboard, and then get that as a string? I can't make that work either.
(As always, please only answer if you've actually tried it and seen it work. Not interested in your guesses.)