I'm trying to code a button that can read the number of selected files in a lister, and copy that number to the clipboard so that the number can be read by an external program.
For example, if 5 files are selected, the value stored in the clipboard would be set to "5".
If no files are selected, the value stored in the clipboard would be set to "0".
From what I saw when looking at other posts in this forum, "clickData.func.sourcetab.selected_files.count" seems like it might help, but I'm not sure how to get the value returned by that to be stored to the clipboard.