Possible to show/hide two objects simultaneously?

I have a progress indicator and a text field I want to show/hide at the same time. They are only on the screen for a second or two so it’s very noticeable when they don’t show up together.

I’m not shure about this because both methods happens so fast

first I tried it on the regular method


	tell window "main"
		set visible of text field "test" to false
		set visible of progress indicator "test" to false
	end tell

Maybe this will go faster but like I said I’m not shure about because I didn’t saw a on the method before that the visibility of the text field was gone earlyer that the progress indicator


	tell window "main"
		set {visible of text field "test", visible of progress indicator "test"} to {false, false}
	end tell