It logs the number of the selected rows ok but fails to log
I select some children rows and then run this from a menu command.
The parent
the children
Guitar Rig 2 -.bnk
/Volumes/Macintosh HD//Applications/Guitar Rig 2/Preset Banks/- Guitar Rig 20 -.bnk
/Volumes/Macintosh HD//Applications/Guitar Rig 3/Preset Banks/- Guitar Rig 32 -.bnk
on GetMyInfo()
set theSelectedRows to selected rows of outline view "outlineView" of scroll view "scrollView" of window "main"
log theSelectedRows as text
repeat with thisRow in theSelectedRows
log (contents of data cell "name" of data row thisRow of outline view "outlineView" of scroll view "scrollView" of window "main") as text
end repeat
end getMyInfo
I tried it but unfortunately, even with the tell me I still get error: Can’t get data row 2 of outline view “outline view” of scroll view “scrollView” of window “main” -1728
-1728 means that an object could not be found.
Success, by golly I got it!
You have to ask the data source to do it for you.
tell dataSource mySource to set theFile to contents of data cell “name”
set thisRow to item i of theSelectedRows
tell data source of outline view "outlineview" of scroll view "scrollView" of window "main"
set myContent to contents of data cell "name" of thisRow
end tell
tell me to log myContent as text