accessing field values within applescript

I can’t cluge correct syntax to get field value in following script … what am i missing ?

set lname to “be”
– the above line simply demonstrates all will be ok once “lname” is pulled from field “lname”

tell application “Address Book”
activate
– set lname to cellValue of cell “lname” of current window of table “people_UI” of file “filename”
end tell

tell application “System Events”
tell process “Address Book”
tell group 3 of UI element 1 of tool bar 1 of group 4 of window “Address Book”
keystroke (lname)
end tell
end tell
end tell

What are you trying to accomplish??

BTW, stay as far away from UI Scripting as possible. It’s unreliable and the terse syntax is cumbersome.

Jim Neumann
BLUEFROG