restrict script to act just upon selected text [QuarkXPress]

QuarkXPress 6.5.2–

Want to have my find/change script JUST run on the text I have selected.

Not sure how to word the “Tell selection” part…

Here’s the code:

tell document 1 of application “QuarkXPress”
activate
tell current box
tell story 1
set every text where it is (ASCII character 32) to (ASCII character 9)
end tell
end tell
end tell

Anyone ever done this?

tell document 1 of application "QuarkXPress"
	activate
	tell selection
		set every text where it is (ASCII character 32) to (ASCII character 9)
	end tell
end tell

super.

Thanks Matt-Boy