Page 1 of 1

Timestamping, how to use?

Posted: 11 Mar 2015 18:32
by Explorer
I like the new function Timestamping. But there are only some examples. Is there a full list of all Timestamping commands?

What I want for example, is to set the created date of selected list items to the modified date of the same item.

Re: Timestamping, how to use?

Posted: 11 Mar 2015 19:22
by bdeshi

Code: Select all

::foreach ($curitem, <get selecteditemspathnames |>){timestamp c,$curitem, $curitem,m};
should do it. you can just select some items and paste this code into the addressbar and ENTER.

Re: Timestamping, how to use?

Posted: 11 Mar 2015 19:51
by admin
Sammay's code works fine, but I would have expected that this would work as well:

Code: Select all

timestamp 'c', '*', , 'm';
However, it did not!

So, I just made it work. :beer:

Re: Timestamping, how to use?

Posted: 11 Mar 2015 22:49
by Explorer
Thank you all for your help. :D

Re: Timestamping, how to use?

Posted: 12 Mar 2015 03:59
by bdeshi
admin wrote:Sammay's code works fine, but I would have expected that this would work as well:

Code: Select all

timestamp 'c', '*', , 'm';
However, it did not!

So, I just made it work. :beer:
Nice. :appl:
Maybe this "inline-looping" can be exposed to others SCs, eh? :ninja: