nstextfield error

Hi,
I’m trying to teach myself AppleScript Studio. I’ve created a basic interface with a button and an NSTextField. The button, when clicked, is supposed to set the contents of the text field, using this script:
on clicked theObject
set content of the text field “theOutput” of “theWindow” to “test”
end clicked

Instead, I get this error:
Can’t make “theOutput” into a integer. (-1700)

Which I don’t understand because I’m not trying to coerce the text field. I’ve tried setting the content “as text”.

What am I doing wrong?
Thank You,
Chris

try this instead…

on clicked theObject
set content of text field "theOutput" of window "theWindow" to "test"
end clicked

j

I tried the above, and got a different error:
NSReceiverEvaluationScriptError: 4 (1)

Chris

My error, the window wasn’t named, thank you jobu.

Chris

Browser: Safari) OmniWeb/v563.34
Operating System: Mac OS X (10.4)