It seems that my English was not clear enough.
Everything behave correctly.
The targeted UI element HASN’T a name.
Reading carefully what is displayed by Accessibility Inspector would have helped you to understand.
Everything is available in what you posted.
The script below was tested with 10.9.5, 10.10.5, 10.11.5 and 10.12.1
tell application "System Events"
tell process "Notes"
set sys2 to (system attribute "sys2")
if sys2 > 10 then
# code used by 10.11.y and 10.12.z
set selectedRow to 1st row of table 1 of scroll area 1 of group 1 of splitter group 1 of splitter group 1 of window 1 whose selected is true
set rowItems to class of UI elements of selectedRow --> {UI element}
set rowProperties to properties of UI element 1 of selectedRow --> {minimum value:missing value, orientation:missing value, position:{1165, 223}, class:UI element, role description:"cellule", accessibility description:missing value, focused:true, title:missing value, size:{300, 56}, value:missing value, help:missing value, enabled:true, maximum value:missing value, role:"AXCell", entire contents:{}, subrole:missing value, selected:true, name:missing value, description:"cellule"}
tell UI element 1 of selectedRow
set rowName to its name --> missing value
class of UI elements --> {image, image, static text, static text, static text}
set theNames to name of static texts --> {"azerty uiop", "Tagada Tsoin Tsoin", "18/09/2015"}
end tell
else if sys2 > 8 then
# code used by 10.9.w and 10.10.x
set selectedRow to 1st row of table 1 of scroll area 1 of group 1 of splitter group 1 of window 1 whose selected is true
set rowItems to class of UI elements of selectedRow --> {UI element}
set rowProperties to properties of UI element 1 of selectedRow --> {minimum value:missing value, orientation:missing value, position:{1165, 223}, class:UI element, role description:"cellule", accessibility description:missing value, focused:true, title:missing value, size:{300, 56}, value:missing value, help:missing value, enabled:true, maximum value:missing value, role:"AXCell", entire contents:{}, subrole:missing value, selected:true, name:missing value, description:"cellule"}
set rowName to name of UI element 1 of selectedRow
else # Here is the code which YOU posted and which DOESN'T apply for 10.9.w, 10.10.x, 10.11.y and 10.12.z
set selectedRow to 1st row of table 1 of scroll area 1 of group 1 of group 1 of splitter group 1 of splitter group 1 of window 1 whose selected is true
set rowItems to class of UI elements of selectedRow --> {UI element}
set rowProperties to properties of UI element 1 of selectedRow --> {minimum value:missing value, orientation:missing value, position:{1165, 223}, class:UI element, role description:"cellule", accessibility description:missing value, focused:true, title:missing value, size:{300, 56}, value:missing value, help:missing value, enabled:true, maximum value:missing value, role:"AXCell", entire contents:{}, subrole:missing value, selected:true, name:missing value, description:"cellule"}
set rowName to name of UI element 1 of selectedRow
end if
end tell
end tell
I guess that on your machine, theNames will be[format] {“Retrain "hey Siri"”, “No additional text”, “16:28”}[/format]
Yvan KOENIG running Sierra 10.12.1 in French (VALLAURIS, France) samedi 10 décembre 2016 15:35:35