Copy data custom column to clipboard

Discuss and share scripts and script files...
Post Reply
Rolando
Posts: 21
Joined: 24 Nov 2022 19:22

Copy data custom column to clipboard

Post 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?

highend
Posts: 14281
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Copy data custom column to clipboard

Post by highend »

copytext report("{example}", <curitem>);?
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 63687
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Copy data custom column to clipboard

Post 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:

Code: Select all

copytext report("{example}", 1);

admin
Site Admin
Posts: 63687
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Copy data custom column to clipboard

Post 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! :tup: Will be possible in the next beta.

atisoro
Posts: 29
Joined: 27 Jan 2025 16:27

Re: Copy data custom column to clipboard

Post 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?

highend
Posts: 14281
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Copy data custom column to clipboard

Post 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()...
One of my scripts helped you out? Please donate via Paypal

Rolando
Posts: 21
Joined: 24 Nov 2022 19:22

Re: Copy data custom column to clipboard

Post by Rolando »

Thank you both very much for all the help! :-)

Post Reply