Error in gui scripting button press (expected end of line)

With the following code…

tell application "iShowU"
	activate	
	click button "Record" of window "iShowU"	
end tell

I get an error saying “Expected end of line” and the word button ends up highlighted.

Does anyone have any ideas what I’m doing wrong?

Jody

Hi,

welcome to MacScripter.

click and button are terminology of System Events, not of iShowU

A common syntax for GUI scripting is


activate application "iShowU"

tell application "System Events"
	tell process "iShowU"
		click button "Record" of window "iShowU"
	end tell
end tell

Thanks! That was it.

I appreciate the help.

Jody