The code snippit above would do that.
Just replace the "send doit" with "set the color of field i to red" (or whatever the grammar is on that--Last time I dealt with this, we didn't even have gray
and if you want to select them all, something like
Code: Select all
put empty into myList
repeat with i = 1 to the number of fields
if the short name of field i <> "Label Field" then
put "and field " & the short name of field i & after myList
end if
end repeat
--but there is are extra pieces at the ends of our string
delete the first word of myList
select mylist
I just used this for a script to to select, group, shove back and make unselectable all of the labels and rectangles on an arbitrary card.
hawk