I am trying to change the contents of a text field in something i made in Interface Builder, but I keep getting the error "“Can’t set “Window” to “kristin” (-10006)” here is the code:
set contents of text field "chanNum" of window "Window" to "kristin" as string
Thanks
Hi,
is the text field and the window properly named in Interface Builder?
I recommend to use string value instead of contents,
the as string coercion is not needed, a literal string like “kristin” is a string anyway
set string value of text field "chanNum" of window "Window" to "kristin"