How does one directly access the value of a column for a folder or file via script?
How does one directly access the value of a column for a folder or file via script?
I'm sure this is somewhere obvious, but I'm having trouble finding it; for example: The column with the cached folder size, already-calculated hash value of a file, or a script-calculated column?
Re: How does one directly access the value of a column for a folder or file via script?
Code: Select all
$column_index = 5; // index of column info you want to get
$selected_row = report(, 1); // returns selected item's entire row data as displayed on current list, tab-separated
text gettoken($selected_row, $column_index, <tab>); // extract column from tab-separated row data and display
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]