Function “getSelection”
function getSelection()
Gets the current focus index
Return Value
Returns an array of indices into the array retuned by getItems.
Example
var items = getItems()
var selection = getSelection()
print("Selected files (" + selection.length + "):")
for (i in selection)
print(items[selection[i]].fullLocalPath());