Quark find/change (search&replace) color

i am looking to build a script that can like the find/change dialog box
search for color and replace with text
http://homepage.mac.com/happymacarts/PhotoAlbum2.html

i want to search for any text of a particular color and replace it with the text string “”

any ideas on where to begin

i have this so far which obviously does not work but will give you an idea what i am looking to do

tell application "QuarkXPress"
	tell document 1
		set us to text of paragraphs whose color is "US" as list
		set the text of every item of us to ""
	end tell
end tell

so in fact i am looking to delete any text that is in the custom color “US”

try this:

tell application "QuarkXPress Passport"
	tell document 1
		set contents of every paragraph of every story whose color is "US" to ""
	end tell
end tell

good luck
kjeld

tell application "QuarkXPress"
	--activate
	tell document 1
		set the_colors to the name of every color spec whose registration color is false as list
		set mycolor to (choose from list the_colors with prompt "please pick the dead color")-- Note this deletes any copy in the specified color this DOES NOT delete the color
		set contents of every word of every story whose color is mycolor to ""
		--display dialog mycolor
	end tell
end tell