Get selected items while in checkbox mode in script

Hi, everybody!
Check some items, select some other items, then run the script below, can only get checked items but can't get the selected items:

Function OnClick(ByRef clickData) DOpus.ClearOutput For Each item in clickData.func.sourcetab.selected If (item.checked) Then DOpus.Output("Checked: "&item.RealPath) If (item.selected) Then DOpus.Output("Selected: "&item.RealPath) Next End Function

Is it normal or a bug with the selected key word? Please have a look at it. Thank you!

Try looping through "items" instead of "selected". That will include both groups of files.

Edit one line and it works:

For Each item in clickData.func.sourcetab.files

Thanks, Leo!