on clicked theObject
tell window “main”
tell tab view “nametab”
set the char_name to the content of text field “Charname”
when I run this script I get this error and have no idea where I am messing up.
NSReceiverEvaluationScriptError: 4 (1)
I would appreciate any help. This is my first program and I am really frustrated.
Thanks in advance
You’re missing a level of the object hierarchy. Tab views contain tab view items which contain the other controls:
[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]
That was the problem. Thank you for your help.