panel window & some tell

present:
window “main”
panel “panel”

i do:

display panel (window “panel”) attached to window main

tell text field of window “main” --tell scroll view & etc…

close panel (window “panel”) – error :frowning:

end tell

please help

Hi,

take a look at the panel examples in /Developer/Examples/AppleScript Studio/

Display Panel
Open Panel
Save Panel

Yes, I by those examples also did. Does not work only in another’s block tell. I do not understand why. Can be it is necessary to add "of… '?

To avoid unexpected errors it’s recommended to use reference tell blocks only for the appropriated lines