Setting visible of all items

How come I can’t do this:

tell window "mainWin"
	set visible of every text field to true
end tell

may be by putting all your text field within a box (transparent) that you make visible / hidden as you want …