Page 1 of 1
Copy data custom column to clipboard
Posted: 29 Jan 2025 21:15
by Rolando
Good evening,
Is it possible to create a script that copies the data from the custom column named 'EXAMPLE' from the selected row to the clipboard?
Or even better: from the row you hover over with the mouse without selecting it?
Re: Copy data custom column to clipboard
Posted: 29 Jan 2025 21:47
by highend
copytext report("{example}", <curitem>);?
Re: Copy data custom column to clipboard
Posted: 30 Jan 2025 14:40
by admin
Ah yes. Should work next time.
BTW, if you pass the item as file (or variable resolving to a file), the report will generate fresh data for that item:
Code: Select all
copytext report("{example}", <curitem>);
You can usually achieve the same results (when just one item is selected), but with less work for XY, by passing number 1 for "all selected items". It will simply copy the data already present in the list:
Re: Copy data custom column to clipboard
Posted: 30 Jan 2025 15:18
by admin
Rolando wrote: ↑29 Jan 2025 21:15
Or even better: from the row you hover over with the mouse without selecting it?
Cool idea!

Will be possible in the next beta.
Re: Copy data custom column to clipboard
Posted: 30 Jan 2025 18:24
by atisoro
It is possible to check if the files displayed with listfolder() have comments and note in the variable $hasComment = True only for files that have such text?
Re: Copy data custom column to clipboard
Posted: 30 Jan 2025 19:37
by highend
Look at quicksearch() instead, it can return only the ones that have a comment but ofc you could iterate over the listfolder() result and get the necessary stuff via tagitems()...
Re: Copy data custom column to clipboard
Posted: 30 Jan 2025 20:07
by Rolando
Thank you both very much for all the help! :-)