# File lib/foxtails/FTFileBrowser.rb, line 139
    def open_selection index
      if isItemDirectory(index)
        self.directory = getItemPathname(index)
      elsif isItemFile(index)
        items = (0...getNumItems).select do |i|
          if isItemDirectory(i)
            deselectItem(i)
            false
          else
            isItemSelected(i)
          end
        end
        names = items.map {|index| getItemPathname(index)}
        self.files_chosen = names
        open_named_files(files_chosen)
      end
    end