box color property in Quark Xpress 6.5

I wrote a script for Xpress 3/4 to import text only in certain text boxes. To do this I filled the target boxes with Magenta, leaving the rest as “null”. Then I run something like this:

tell app “Quark Xpress”
tell document 1
set story 1 of every text box whose color is “Magenta” to “Hello!”
end tell – doc
end tell – app

This seems not working with Xpress 6.5: if asked via a “get properties” command, it recognizes “Magenta” (or any other color, and “null” too) as the color property of the target boxes, but it refuses to feed them saying that a text box whose color = magenta (or null) does means nothing to it.

Did anyone else already crashed against this wall?

Thank you in advance for help

hmbeyle

Try this

set name of every text box of story 1 whose color is “Magenta” to “Hello!”

Regards,
Rajeev

It works. Trickier than adressing directly to colored boxes, but it works.
While tuning it to my needs, please notice that the words “of story 1” generates an error. The right syntax is

set name of every text box whose color is “Magenta” to “Hello!”

I’ll track you for results of your suggestion. Thank you again.

Hai i think it should be

tell app “Quark Xpress”
tell document 1
set text of story 1 of every text box whose color is “Magenta” to “Hello!”
end tell – doc
end tell – app