Quark find

I am fairly new to apple scripts can someone help. I have a textbox on my quark document with the words “Test”. I want to find the word test in my document and then a paste.
Another words something like a find and replace with the information on my clipboard

tell application “QuarkXPress™ 4.11”
activate

try

	if not (exists document 1) then error "No document is open."
	
	tell document 1
		if «class PMAS» is true then error "This script doesn't work on master pages."
	end tell
end try

end tell

Alright I suppose it’s to hard do a find in quark.
how about can I create a picture box and edit it to a textbox and then do a paste.

It’s easy to a find and replace in Quark. You have to save the text as Tagged text and run it through this script:

Find-Replace in Text

I have the complete script at work, if you’re having problems, I can post it tomorrow. If you have a copy of Shirley Hopkins’s book, it’s in there. At least I think that I stole^H^H^H^H^H found it.