How to show results of a script in a custom column: ?
Posted: 10 Aug 2024 15:28
I saw an old forum post about creating a column with the time difference between 'CreatedDate' and 'ModifiedDate'. This is what I would need: show image files where the two are not identical [in a range from over some minutes]. However, the code I found there does nothing I would see:
return datediff(filetime(<cc_item>, "c"), filetime(<cc_item>, "m"), "d");
If I use the address bar to enter
::echo datediff(filetime(<cc_item>, "c"), filetime(<cc_item>, "m"), "d");
the result is always "0" although the times are different ...
Since I have no experience with scripts, I have absolutely no clue how to manage this - 'Tour - Scripting' didn't help me. How to write a script that calculates the time difference (e.g. in hours) ? It would have to work through a hierarchy of subfolders, like D:\Fotos.
How to create a column and how to connect it to the script ?
I imagine I could then sort this column, like any other, by size ?
return datediff(filetime(<cc_item>, "c"), filetime(<cc_item>, "m"), "d");
If I use the address bar to enter
::echo datediff(filetime(<cc_item>, "c"), filetime(<cc_item>, "m"), "d");
the result is always "0" although the times are different ...
Since I have no experience with scripts, I have absolutely no clue how to manage this - 'Tour - Scripting' didn't help me. How to write a script that calculates the time difference (e.g. in hours) ? It would have to work through a hierarchy of subfolders, like D:\Fotos.
How to create a column and how to connect it to the script ?
I imagine I could then sort this column, like any other, by size ?