Selecting iChat's File->Go to Chat...

I am trying to automate a connection to a chat in iChat using:


try
	tell application "iChat" to activate
	tell application "System Events"
		tell process "iChat"
			tell menu bar 1
				tell menu bar item "File"
					tell menu "File"
						click menu item "Go to Chat."
					end tell
				end tell
			end tell
			tell window "Go to Chat"
				set value of text field 1 to "misc@conference.domain.com"
				set enabled of button "Cancel" of window "Go to Chat" to true
				click button "Go"
			end tell
		end tell
	end tell
	return true
on error error_message
	return error_message
end try

It almost works, but the “Go” button is disabled and I can’t seem to enable it (I get an NSReceiverEvaluationScriptError), which I need to do as iChat disables this button until it’s had keyboard input to the text field. What am I missing?

That whould be, of course:

set enabled of button "Go" of window "Go to Chat" to true

Not that it makes a difference :frowning: