Page 1 of 1

[Solved] Current Timestamp Button for Info Panel

Posted: 08 Sep 2022 13:05
by VeeGee
Good morning all,
Lately I have found myself having to update the timestamps (Created, Modified or Accessed) on files. This is incredibly easy to do using the Info Panel | Properties section.

Is it possible to add a small clock/calendar icon next to the existing check mark and X that would insert the current timestamp into the text field ? Maybe even put the new icon on the left side of the box (if it fits/adjusts better).
Image-003.png
Unless I am missing something completely obvious, I didn't see a way to update the field(s) with the current timestamp.

Re: Current Timestamp Button for Info Panel

Posted: 08 Sep 2022 13:52
by LittleBiG
Delete the existing value (to empty the field out) then click on the green tick to apply. The empty field will be filled out with the current timestamp.

Re: Current Timestamp Button for Info Panel

Posted: 08 Sep 2022 14:24
by VeeGee
Ha ! Thanks, that tricked worked perfect. I would not have tried that.

Re: [Solved] Current Timestamp Button for Info Panel

Posted: 08 Sep 2022 16:37
by JLoftus
Another tip, I added the following as a CTB script:

$file = "";
foreach($file, "<get SelectedItemsPathNames |>") {
timestamp, , $file;
}

This allows one button click to timestamp all the currently selected list items in one go. I use this frequently when editing music folders.

Look at the help file for the syntax of timestamp - you can set any/all of the date fields

Re: [Solved] Current Timestamp Button for Info Panel

Posted: 08 Sep 2022 17:34
by VeeGee
Thanks for this - tried it out, works great and the modifications via Help were easy to add.

Side question, it's been some time since I made or modified a CTB. It was easy to do and I remembered how to; however, I found some really old ones I had done in the list (left side when adding to toolbar). These are no longer needed, but still have the old names. How do you reset these so they go back to User Button #X ? I tried adding a few to edit but I wasn't able to right-click / Edit them on the toolbar like other ones.

I ended up removing them from the INI directly via Notepad++ (with backups of course) and restarting XY. It worked, but I know I'm missing something somewhere to easily remove/reset these things.

Re: [Solved] Current Timestamp Button for Info Panel

Posted: 08 Sep 2022 19:03
by JLoftus
I've always found this one hard to find too....

User -> Manage Commands should be what you are looking for?

Re: [Solved] Current Timestamp Button for Info Panel

Posted: 08 Sep 2022 19:14
by jupe
VeeGee wrote:How do you reset these so they go back to User Button #X ?
Add CTB to toolbar, [Ctrl]+RC btn > Edit..., then press Clear btn in dialog.

Re: [Solved] Current Timestamp Button for Info Panel

Posted: 08 Sep 2022 19:17
by JLoftus
nice tip, thanks. That does require the CTB be added though, the User menu lets you clear out commands without having one added to the toolbar

Re: [Solved] Current Timestamp Button for Info Panel

Posted: 08 Sep 2022 19:19
by jupe
The question I was answering had nothing to do with UDC though.