Proof of concept of timestamping — need some help...
Posted: 25 Jan 2013 17:42
Goal: selecting a bunch of files and, for each of them, setting the three dates to the earliest between written and last modified.
This code "works" provided that all the desired items are visible in the List and there are no additional "interfering" items.
Needless to say, I don't like it 
Using property("Write", $file) and the sister property("Create", $file) would allow me to write a foreach loop, however they return UTC times (no good for non-British).
Any idea?
Oh, a trivial
doesn't work either.
This code "works" provided that all the desired items are visible in the List and there are no additional "interfering" items.
Code: Select all
while ("1" == "1") {
timestamp, (compare(<datem>, <datec>, "d") == "1")?<datec>:<datem>;
sel "+1";
};Using property("Write", $file) and the sister property("Create", $file) would allow me to write a foreach loop, however they return UTC times (no good for non-British).
Any idea?
Oh, a trivial
Code: Select all
timestamp, (compare(<datem>, <datec>, "d") == "1")?'<datec>':'<datem>';