Is there something wrong with this script?

It seems right. I triple checked it. Doesn’t work. Any other ways to do the same thing?

tell application "iChat"
	activate
end tell

tell application "System Events"
	tell process "ichat"
		click the item "Video Preview" of menu item "Video" of menu bar 1
		
	end tell
end tell

I can’t test this one, but I think you’re missing one part.

click item "Video Preview" of menu 1 of menu item "Video" of menu bar 1

That doesnt work either. Its weird. It says

System Events got an error: Can’t make item “Video Preview” of menu 1 of menu item “Video” of menu bar 1 of process “ichat” into type UI element.

I think you’re missing another part (menu item):

click menu item "Video Preview" of menu 1 of menu item "Video" of menu bar 1

This is so weird, I ran that, and I recieved an error there too. Here is my entire code:

tell application "iChat"
	activate
end tell

tell application "System Events"
	tell process "ichat"
		click menu item "Video Preview" of menu 1 of menu item "Video" of menu bar 1
	end tell
end tell

This is the error I get:

System Events got an error: NSReceiverEvaluationScriptError: 4

It seems like it would be simple. I have even tried this. It doesn’t work, but it does for the buddy list. I cant figure it out. Any other ides to how I can open this window?

tell application "iChat"
	set visible of window "my isight" to true
	
end tell

Ok, this HAS to work, but it doesn’t. I have a program that tells you the exact UI script. This is what it gave me, and everything I have tried does not work. I read on apples website that you had to enable assitance for assistave devices. I did, but no luck. Anyone see this before?

tell application "iChat"
	activate
end tell
tell application "System Events"
	tell process "ichat"
		click menu item "Video Preview" of menu 1 of menu bar item "Video" of menu bar 1
	end tell
end tell

It worked! That is the hardest easy thing to do! Thanks!